mirror of
https://github.com/ZorgCC/lumen-generators.git
synced 2024-12-30 23:55:30 +03:00
10 lines
425 B
PHP
10 lines
425 B
PHP
<?php
|
|
$I = new AcceptanceTester($scenario);
|
|
|
|
$I->wantTo('generate the REST actions trait');
|
|
$I->runShellCommand('php artisan wn:controller:rest-actions');
|
|
$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'); |