File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 44
55use Carbon \Carbon ;
66use Illuminate \Support \Facades \Config ;
7+ use org \bovigo \vfs \vfsStream ;
8+ use org \bovigo \vfs \vfsStreamFile ;
79use RonasIT \Support \Exceptions \ClassNotExistsException ;
810use RonasIT \Support \Tests \Support \Command \CommandMockTrait ;
911use 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 (
Original file line number Diff line number Diff line change 1010use Orchestra \Testbench \TestCase as BaseTestCase ;
1111use org \bovigo \vfs \vfsStream ;
1212use org \bovigo \vfs \vfsStreamDirectory ;
13- use org \bovigo \vfs \vfsStreamFile ;
1413use RonasIT \Support \EntityGeneratorServiceProvider ;
1514use 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
You can’t perform that action at this time.
0 commit comments