Testing in Laravel | How to Write Tests With Laravel | Laravel 8 Testing Tutorial
This video will show you how to use test your code in Laravel. We are going to cover the basics of unit tests, feature tests, HTTP tests, database tests and seeder tests in Laravel.
Resources
- Github: https://github.com/codewithdary/laravel-testing
- Patreon: https://www.patreon.com/user?u=30307830
- Instagram: https://www.instagram.com/codewithdary/
- Twitter: https://twitter.com/codewithdary
- Cloudways Hosting: https://www.cloudways.com/en/?id=918573
- Items I use: https://kit.co/codewithdary
Get up to 1 Month Free Hosting by using code "DARY15" and get $15 free hosting credit.
Cloudways offers peace of mind and flexibility so you can focus on growing your business and reaching new milestones instead of dealing with server management. With Cloudways, you get an optimized stack, managed servers, backups, staging environment, integrated Git, pre-configured, Composer, 24/7 support, and the choice of five cloud providers: AWS, DigitalOcean, Linode, Google Cloud, and Vultr.
Coding Gear
- MacBook Pro: https://amzn.to/3qTMnGi
- Dell XPS: https://amzn.to/3Atp7Cm
- LG 34WN650-W: https://amzn.to/3G0XMbS
- Magic Trackpad 2: https://amzn.to/3Arp2ir
- Magic Mouse 2: https://amzn.to/346k5zC
- NAS: https://amzn.to/3rFf60U
- Sandisk SSD: https://amzn.to/3fNHcBB
- Rain Design Stand: https://amzn.to/3GTMeZ5
Recording Gear
- Rode NT-USB [Start]: https://amzn.to/3ApApXY
- Shure SM7B [Advanced]: https://amzn.to/3Arj5lv
- Rode PSA1: https://amzn.to/32pMCQ5
- Focusrite Scarlett 2i2: https://amzn.to/3FYZD0t
- XLR to XLR: https://amzn.to/3qVm2rC
Timestamps
00:00 introduction
01:57 Sponsor of this video: Cloudways
02:34 Introduction Part 2
03:09 Integrated Laravel tools
05:10 Running your tests
07:50 Our first failed test!
09:48 Creating Unit Tests
16:46 HTTP testing
20:17 Database testing
24:55 Seeder testing
▬▬▬
#cloudhosting #managedhosting #cloudways #laravel #laraveltesting #phpunit