Этот материал находится в платной подписке. Оформи премиум подписку и смотри или слушай Laravel: PHPUnit Testing for Beginners, а также все другие курсы, прямо сейчас!
Премиум
  • Урок 1. 00:02:12
    Intro: WHY do you need to (automatically) test your code?
  • Урок 2. 00:04:46
    Our First Test: How PHPUnit works? What is Test and Assertion?
  • Урок 3. 00:05:46
    Real project "Product List": Testing that table is (not) empty
  • Урок 4. 00:07:28
    Database Configuration: RefreshDatabase, Phpunit.xml and .env.testing
  • Урок 5. 00:03:08
    Be careful with assertSee: test DATA to avoid false positives
  • Урок 6. 00:09:33
    Unit Tests vs Feature Tests: example of currency converter
  • Урок 7. 00:06:44
    Factories: How to create many testing records without loops
  • Урок 8. 00:10:14
    Auth Test: Does user have access to the page?
  • Урок 9. 00:04:21
    Avoid creating the same data: Private methods or setUp()
  • Урок 10. 00:06:50
    Testing roles: only Admin can access creating products
  • Урок 11. 00:04:18
    New Product: testing that record was saved into database
  • Урок 12. 00:03:28
    Edit Product: Testing correct values in form inputs
  • Урок 13. 00:04:48
    Update Product: test if validation error is fired correctly
  • Урок 14. 00:03:01
    Delete Product: test if it's actually removed from database
  • Урок 15. 00:04:55
    Testing file uploads: fake storage driver
  • Урок 16. 00:03:17
    PHPUnit Flags: run only the tests you're interested in
  • Урок 17. 00:07:29
    Test Driven Development: simple TDD example