2017-01-18 18:55:18 +03:00
|
|
|
<?php
|
2015-09-24 03:25:55 +03:00
|
|
|
$I = new AcceptanceTester($scenario);
|
|
|
|
|
|
|
|
$I->wantTo('generate the REST actions trait');
|
2017-01-18 18:55:18 +03:00
|
|
|
$I->runShellCommand('php artisan wn:controller:rest-actions --force=true');
|
2015-09-24 03:25:55 +03:00
|
|
|
$I->seeInShellOutput('REST actions trait generated');
|
|
|
|
$I->seeFileFound('./app/Http/Controllers/RESTActions.php');
|
|
|
|
$I->openFile('./app/Http/Controllers/RESTActions.php');
|
|
|
|
$I->seeInThisFile('trait RESTActions {');
|
2017-01-18 18:55:18 +03:00
|
|
|
$I->deleteFile('./app/Http/Controllers/RESTActions.php');
|