DiscoverNo CompromisesLots of different ways to test record creation
Lots of different ways to test record creation

Lots of different ways to test record creation

Update: 2023-07-11
Share

Description

We get a bit nerdy here and dive deep on a few different ways to test record creation.

  • (00:00 ) - We like testing

  • (01:20 ) - One way to test creating a record

  • (03:00 ) - Limitations of fetch the record with first()

  • (05:30 ) - Considerations when using latest() in tests

  • (07:00 ) - An approach for using auto-increment IDs

  • (08:05 ) - Silly bit


Read more of our thoughts at masteringlaravel.io
Comments 
00:00
00:00
x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

Lots of different ways to test record creation

Lots of different ways to test record creation

Joel Clermont and Aaron Saray