co0lsky / seeding-data-in-the-testing

3 stars 1 forks source link

Quick question #1

Closed designvoid closed 7 years ago

designvoid commented 7 years ago

Why is the assertion 2 here?

https://github.com/co0lsky/seeding-data-in-the-testing/blob/master/tests/Feature/UserTest.php#L27

Surely it should be 1 as User A is just following User B?

co0lsky commented 7 years ago

Apologies for the late reply. The user A (id=2) follows user C (id=1) in the UsersTableSeeder.

https://github.com/co0lsky/seeding-data-in-the-testing/blob/master/database/seeds/UsersTableSeeder.php#L25