Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

GitHub: Automated Tests with Http::fake()

Premium
4:27

While working with external APIs, it's important to test them not only manually, but also cover them with automated tests. This is exactly the topic of this lesson.


What We'll Build

We'll build a GitHub repository management system.

The homepage will list the repositories, like this:

On top, we'll implement two features:

  • Repository Creation: Create new GitHub repos from our Laravel app
  • Issue Management: Fetch and create GitHub issues

But our goal in this lesson is not the GitHub API functionality. Our goal is testability.

So we won't even look at the browser throughout this lesson, we will run automated tests, instead:


Routes Structure

Our GitHub service will interact with...

The Full Lesson is Only for Premium Members

Want to access all of our courses? (29 h 46 min)

You also get:

55 courses
Premium tutorials
Access to repositories
Private Discord
Get Premium for $129/year or $29/month

Already a member? Login here

Comments & Discussion

No comments yet…

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.