Skip to content

Commit 76f1a63

Browse files
committed
refactor: remove useless code
refs: #49
1 parent 375e61a commit 76f1a63

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

tests/ServiceGeneratorTest.php

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88
use RonasIT\Support\Exceptions\ClassNotExistsException;
99
use RonasIT\Support\Generators\ServiceGenerator;
1010
use RonasIT\Support\Tests\Support\GeneratorMockTrait;
11-
use RonasIT\Support\Traits\MockTrait;
1211

1312
class ServiceGeneratorTest extends TestCase
1413
{
15-
use GeneratorMockTrait, MockTrait;
14+
use GeneratorMockTrait;
1615

1716
public function testMissingModel()
1817
{
@@ -74,12 +73,6 @@ public function testCreateWithTraitStubNotExist()
7473
]);
7574

7675
app(ServiceGenerator::class)
77-
->setRelations([
78-
'hasOne' => [],
79-
'belongsTo' => [],
80-
'hasMany' => [],
81-
'belongsToMany' => [],
82-
])
8376
->setFields([])
8477
->setModel('Post')
8578
->generate();
@@ -130,12 +123,6 @@ public function testCreateWithoutTraitStubNotExist()
130123
]);
131124

132125
app(ServiceGenerator::class)
133-
->setRelations([
134-
'hasOne' => [],
135-
'belongsTo' => [],
136-
'hasMany' => [],
137-
'belongsToMany' => []
138-
])
139126
->setFields([])
140127
->setModel('Post')
141128
->generate();

0 commit comments

Comments
 (0)