Skip to content

Commit 4d2d04e

Browse files
committed
wip
1 parent 8500488 commit 4d2d04e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Illuminate/Database/Eloquent/Factories/Factory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ public function count(?int $count)
746746
*
747747
* @return static
748748
*/
749-
public function withoutRelationships()
749+
public function withoutParents()
750750
{
751751
return $this->newInstance(['expandRelationships' => false]);
752752
}

tests/Database/DatabaseEloquentFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ public function test_no_models_can_be_provided_to_recycle()
823823
public function test_can_disable_relationships()
824824
{
825825
$post = FactoryTestPostFactory::new()
826-
->withoutRelationships()
826+
->withoutParents()
827827
->make();
828828

829829
$this->assertNull($post->user_id);

0 commit comments

Comments
 (0)