Courses

Laravel HTTP Client and 3rd-Party APIs

GitHub: Automated Tests with Http::fake()

You're reading a FREE PREVIEW of a PREMIUM course.

Video Version of the Lesson

[Only for premium members]

Link to the repository

[Only for premium members]

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 7 video+text lessons of this course? (50 min)

You also get:

  • 83 courses
  • Premium tutorials
  • Access to repositories
  • Private Discord