From 4d2d04e1c7703a0d0cd6b45a2bf6c090ba52bd5a Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 18 Nov 2024 16:24:57 -0600 Subject: [PATCH] wip --- src/Illuminate/Database/Eloquent/Factories/Factory.php | 2 +- tests/Database/DatabaseEloquentFactoryTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Database/Eloquent/Factories/Factory.php b/src/Illuminate/Database/Eloquent/Factories/Factory.php index 65bb1b57834d..b350bf14035c 100644 --- a/src/Illuminate/Database/Eloquent/Factories/Factory.php +++ b/src/Illuminate/Database/Eloquent/Factories/Factory.php @@ -746,7 +746,7 @@ public function count(?int $count) * * @return static */ - public function withoutRelationships() + public function withoutParents() { return $this->newInstance(['expandRelationships' => false]); } diff --git a/tests/Database/DatabaseEloquentFactoryTest.php b/tests/Database/DatabaseEloquentFactoryTest.php index 2c247a20ae11..7ac40b67779d 100644 --- a/tests/Database/DatabaseEloquentFactoryTest.php +++ b/tests/Database/DatabaseEloquentFactoryTest.php @@ -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);