lumen-generators/lumen-test/tests/acceptance/ControllerRestActionsCommandCept.php

11 lines
438 B
PHP
Raw Normal View History

2017-01-18 18:55:18 +03:00
<?php
$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');
$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');