test: fix coverage

This commit is contained in:
Pig Fang 2018-03-11 12:01:14 +08:00
parent 3d99e9a88e
commit 520a9c3b97
2 changed files with 7 additions and 0 deletions

View File

@ -45,6 +45,9 @@ class SetupController extends Controller
throw new PrettyPageException(trans('setup.database.table-already-exists', ['tables' => json_encode($existingTables)]), 1);
}
/**
* @codeCoverageIgnore
*/
if (! function_exists('escapeshellarg')) {
throw new PrettyPageException(trans('setup.disabled-functions.escapeshellarg'), 1);
}

View File

@ -53,6 +53,10 @@ class SetupControllerTest extends TestCase
{
$this->visit('/setup/info')
->seePageIs('/setup/info');
Artisan::call('migrate:refresh');
Schema::drop('users');
$this->visit('/setup/info')->see('already exist');
}
public function testFinish()