Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Nov 18, 2024
1 parent 8500488 commit 4d2d04e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Eloquent/Factories/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ public function count(?int $count)
*
* @return static
*/
public function withoutRelationships()
public function withoutParents()
{
return $this->newInstance(['expandRelationships' => false]);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Database/DatabaseEloquentFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ public function test_no_models_can_be_provided_to_recycle()
public function test_can_disable_relationships()
{
$post = FactoryTestPostFactory::new()
->withoutRelationships()
->withoutParents()
->make();

$this->assertNull($post->user_id);
Expand Down

0 comments on commit 4d2d04e

Please sign in to comment.