Testing Laravel with PHPUnit

2h 42m 59s
English
Paid

Course description

In this course, Brent will help you get started testing a Laravel application. He'll cover how to get started, how to test every functionality in Laravel, and gives handy tips and tricks on how to improve your tests.

Read more about the course

You are about to start your journey in the wonderful world of testing. We hope you're as excited about this as we are.

If you're completely new to testing, you've arrived at the right place. After just a few lessons, you will be able to automatically test the most important pieces of your application.

Even if you already have some experience with testing, this course will probably sharpen your skills.

Which test runner should you use?

In this course, you will use PHPUnit as the tool to run tests. It is the default testrunner for Laravel. The large majority of all Laravel projects have a test suite written for PHPUnit.

Recently, Pest, an alternative testrunner has been picking up speed. Though we can't look into the future, we can imagine this tool becoming the new default in a future version of Laravel. If you would prefer learning how to test using Pest, check out the Pest flavour of this course. Though the syntax is a bit different, the ideas behind the tests are much the same.

Watch Online

This is a demo lesson (10:00 remaining)

You can watch up to 10 minutes for free. Subscribe to unlock all 36 lessons in this course and access 10,000+ hours of premium content across all courses.

View Pricing

Watch Online Testing Laravel with PHPUnit

0:00
/
#1: Intro

All Course Lessons (36)

#Lesson TitleDurationAccess
1
Intro Demo
03:33
2
Our First Test
04:40
3
Using a Database
07:53
4
Using Factories
06:50
5
Factory Relations
03:43
6
Testing a Form
07:24
7
Authenticated Testing
03:31
8
JSON Assertion
07:26
9
Testing Fakes
03:46
10
Mocking
05:03
11
Handcrafted Mocks
03:44
12
Testing Tim
02:50
13
Middleware Tests
05:15
14
Validation in Depth
05:43
15
Validation Rule Testing
02:52
16
Testing File Uploads
03:17
17
Policy Testing
03:03
18
Policies Continued
02:42
19
The HTTP Facade
04:03
20
Testing Console Apps
03:36
21
Testing Blade Components
04:10
22
Testing Livewire
03:21
23
Browser Tests
07:03
24
Dusk in Depth
04:02
25
Custom Factories
06:55
26
Testing Job
05:38
27
Testing Exceptions
02:18
28
TDD
06:35
29
Testing Domain Code
06:32
30
Refactoring with Tests
04:22
31
Regression Testing
01:53
32
Snapshot Testing
03:32
33
Tests and CI
03:09
34
Configuring Databases
01:50
35
Parallel Testing
03:47
36
Data Providers
06:58

Unlock unlimited learning

Get instant access to all 35 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.

Learn more about subscription

Comments

0 comments

Want to join the conversation?

Sign in to comment

Similar courses

REST Assured Fundamentals

REST Assured Fundamentals

Sources: udemy
This course on REST Assured assumes that you have some basic knowledge of Java and API testing, and cuts through all the filler of other courses to get you up and running with R...
3 hours 22 minutes 46 seconds
Real-Time Data with Laravel Reverb and Vue.js

Real-Time Data with Laravel Reverb and Vue.js

Sources: vueschool.io
Would you like to add real data handling features to your applications on Laravel and Vue.js? Whether you are creating a notification system, a chat in...
44 minutes 56 seconds
Master Java Unit Testing with Spring Boot & Mockito

Master Java Unit Testing with Spring Boot & Mockito

Sources: udemy
Spring Boot is the most popular framework to develop RESTful Services. It has Awesome Unit Testing capabilities through Spring Boot Starter Test. Mockito is the most popular moc...
3 hours 56 minutes 12 seconds
React and Laravel: Breaking a Monolith to Microservices

React and Laravel: Breaking a Monolith to Microservices

Sources: udemy
Microservices Architecture, React, Next.js, Laravel, Docker, RabbitMQ, Event Driven Microservices, Internal APIs, Redis. Learn how to create a Monolith using React and Laravel t...
15 hours 7 minutes 45 seconds
Facebook Clone with Laravel, TDD, Vue & Tailwind CSS

Facebook Clone with Laravel, TDD, Vue & Tailwind CSS

Sources: udemy
Building modern applications requires a specialized toolbox of skills and tools. We are going to be using Facebook as an example to build a social network platform from scratch....
9 hours 9 minutes 44 seconds