Skip to content

Commit 685d61b

Browse files
committed
rename HasFactory to HasEntityFactory to not confuse it with the Laravel's one
1 parent 19059d4 commit 685d61b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Testing/Factories/HasFactory.php renamed to src/Testing/Factories/HasEntityFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace LaravelDoctrine\ORM\Testing\Factories;
44

5-
trait HasFactory
5+
trait HasEntityFactory
66
{
77
/**
88
* Get a new factory instance for the model.

tests/Testing/FactoriesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Illuminate\Container\Container;
99
use Illuminate\Database\Eloquent\Factories\CrossJoinSequence;
1010
use LaravelDoctrine\ORM\Testing\Factories\Factory;
11-
use LaravelDoctrine\ORM\Testing\Factories\HasFactory;
11+
use LaravelDoctrine\ORM\Testing\Factories\HasEntityFactory;
1212
use Mockery\Adapter\Phpunit\MockeryTestCase;
1313

1414
class FactoriesTest extends MockeryTestCase
@@ -234,7 +234,7 @@ public function test_cross_join_sequences()
234234
*/
235235
class FactoriesEntityStub
236236
{
237-
use HasFactory;
237+
use HasEntityFactory;
238238

239239
protected static function newFactory()
240240
{

0 commit comments

Comments
 (0)