Skip to content

Commit

Permalink
Add failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiodekker committed Oct 24, 2024
1 parent 910baf0 commit cb05476
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Database/DatabaseEloquentFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ public function test_create_attributes_override_current_state_definition()

FactoryTestPostFactory::new()->create(['user_id' => $user->id]);
$this->assertCount(2, FactoryTestUser::all());

FactoryTestPostFactory::new()->create(['user_id' => FactoryTestUserFactory::new()]);
$this->assertCount(3, FactoryTestUser::all());
}

public function test_has_many_relationship()
Expand Down

0 comments on commit cb05476

Please sign in to comment.