Skip to content

Commit 3032c7b

Browse files
authored
Remove old version compare code (#542)
1 parent a612da5 commit 3032c7b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/Feature/Generators/FactoryGeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ protected function setUp(): void
2424
{
2525
parent::setUp();
2626

27-
$this->factoryStub = version_compare(App::version(), '8.0.0', '>=') ? 'factory.stub' : 'factory.closure.stub';
27+
$this->factoryStub = 'factory.stub';
2828
$this->subject = new FactoryGenerator($this->files);
2929

3030
$this->blueprint = new Blueprint();

tests/Feature/Generators/ModelGeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ protected function setUp(): void
2121
{
2222
parent::setUp();
2323

24-
$this->modelStub = version_compare(App::version(), '8.0.0', '>=') ? 'model.class.stub' : 'model.class.no-factory.stub';
24+
$this->modelStub = 'model.class.stub';
2525
$this->subject = new ModelGenerator($this->files);
2626

2727
$this->blueprint = new Blueprint();

tests/Feature/Generators/SeederGeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected function setUp(): void
2727
{
2828
parent::setUp();
2929

30-
$this->seederStub = version_compare(App::version(), '8.0.0', '>=') ? 'seeder.stub' : 'seeder.no-factory.stub';
30+
$this->seederStub = 'seeder.stub';
3131
$this->subject = new SeederGenerator($this->files);
3232

3333
$this->blueprint = new Blueprint();

0 commit comments

Comments
 (0)