Skip to content

Commit 384cbd5

Browse files
committed
Add assertions for generated exportable and policy files
1 parent 0c5b459 commit 384cbd5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/Feature/Commands/MakeExportCommandTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@
2020
'name' => 'TestExportable',
2121
'--policy' => true,
2222
])->assertSuccessful();
23+
24+
$this->assertFileExists($this->app->path('Exportables/TestExportable.php'));
25+
$this->assertFileExists($this->app->path('Policies/TestExportablePolicy.php'));
2326
});

0 commit comments

Comments
 (0)