Skip to content

Commit 51b3bbe

Browse files
committed
fix: tests
1 parent b0161f1 commit 51b3bbe

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

tests/CommandTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
use Carbon\Carbon;
66
use Illuminate\Support\Facades\Config;
7+
use org\bovigo\vfs\vfsStream;
8+
use org\bovigo\vfs\vfsStreamFile;
79
use RonasIT\Support\Exceptions\ClassNotExistsException;
810
use RonasIT\Support\Tests\Support\Command\CommandMockTrait;
911
use UnexpectedValueException;
@@ -12,6 +14,15 @@ class CommandTest extends TestCase
1214
{
1315
use CommandMockTrait;
1416

17+
public function setUp(): void
18+
{
19+
parent::setUp();
20+
21+
vfsStream::newDirectory('routes')
22+
->at($this->rootDirectory)
23+
->addChild(new vfsStreamFile('api.php'));
24+
}
25+
1526
public function testCallWithInvalidCrudOption()
1627
{
1728
$this->assertExceptionThrew(

tests/TestCase.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use Orchestra\Testbench\TestCase as BaseTestCase;
1111
use org\bovigo\vfs\vfsStream;
1212
use org\bovigo\vfs\vfsStreamDirectory;
13-
use org\bovigo\vfs\vfsStreamFile;
1413
use RonasIT\Support\EntityGeneratorServiceProvider;
1514
use RonasIT\Support\Traits\FixturesTrait;
1615

@@ -35,9 +34,6 @@ public function setUp(): void
3534
$this->generatedFileBasePath = vfsStream::url('root');
3635

3736
vfsStream::newDirectory('config')->at($this->rootDirectory);
38-
vfsStream::newDirectory('routes')
39-
->at($this->rootDirectory)
40-
->addChild(new vfsStreamFile('api.php'));
4137

4238
Event::fake();
4339

0 commit comments

Comments
 (0)