mirror of
https://github.com/ZorgCC/lumen-generators.git
synced 2024-12-30 15:45:30 +03:00
11 lines
438 B
PHP
11 lines
438 B
PHP
<?php
|
|
$I = new AcceptanceTester($scenario);
|
|
|
|
$I->wantTo('generate the REST actions trait');
|
|
$I->runShellCommand('php artisan wn:controller:rest-actions --force=true');
|
|
$I->seeInShellOutput('REST actions trait generated');
|
|
$I->seeFileFound('./app/Http/Controllers/RESTActions.php');
|
|
$I->openFile('./app/Http/Controllers/RESTActions.php');
|
|
$I->seeInThisFile('trait RESTActions {');
|
|
$I->deleteFile('./app/Http/Controllers/RESTActions.php');
|