test: fix coverage
This commit is contained in:
parent
520a9c3b97
commit
ef2e44c5e9
|
|
@ -21,7 +21,9 @@ class SetupController extends Controller
|
||||||
$type = get_db_type();
|
$type = get_db_type();
|
||||||
|
|
||||||
if ($type === 'SQLite') {
|
if ($type === 'SQLite') {
|
||||||
|
// @codeCoverageIgnoreStart
|
||||||
$server = get_db_config()['database'];
|
$server = get_db_config()['database'];
|
||||||
|
// @codeCoverageIgnoreEnd
|
||||||
} else {
|
} else {
|
||||||
$config = get_db_config();
|
$config = get_db_config();
|
||||||
$server = "{$config['username']}@{$config['host']}";
|
$server = "{$config['username']}@{$config['host']}";
|
||||||
|
|
@ -45,12 +47,11 @@ class SetupController extends Controller
|
||||||
throw new PrettyPageException(trans('setup.database.table-already-exists', ['tables' => json_encode($existingTables)]), 1);
|
throw new PrettyPageException(trans('setup.database.table-already-exists', ['tables' => json_encode($existingTables)]), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
// @codeCoverageIgnoreStart
|
||||||
* @codeCoverageIgnore
|
|
||||||
*/
|
|
||||||
if (! function_exists('escapeshellarg')) {
|
if (! function_exists('escapeshellarg')) {
|
||||||
throw new PrettyPageException(trans('setup.disabled-functions.escapeshellarg'), 1);
|
throw new PrettyPageException(trans('setup.disabled-functions.escapeshellarg'), 1);
|
||||||
}
|
}
|
||||||
|
// @codeCoverageIgnoreEnd
|
||||||
|
|
||||||
return view('setup.wizard.info');
|
return view('setup.wizard.info');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user