mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-01-24 14:04:07 +08:00
test: fix coverage
This commit is contained in:
parent
3d99e9a88e
commit
520a9c3b97
@ -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);
|
||||
}
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user