mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Added markIncompleteIfSqlite() method
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
17a6335d13
commit
5e15cc3bbe
|
@ -147,6 +147,8 @@ class UserSearchTest extends TestCase
|
|||
|
||||
public function testUsersIndexWhenInvalidSortFieldIsPassed()
|
||||
{
|
||||
$this->markIncompleteIfSqlite('This test is not compatible with SQLite');
|
||||
|
||||
$this->actingAsForApi(User::factory()->viewUsers()->create())
|
||||
->getJson(route('api.users.index', [
|
||||
'sort' => 'assets',
|
||||
|
|
|
@ -10,4 +10,11 @@ trait CanSkipTests
|
|||
$this->markTestIncomplete($message);
|
||||
}
|
||||
}
|
||||
|
||||
public function markIncompleteIfSqlite($message = 'Test skipped due to database driver being sqlite.')
|
||||
{
|
||||
if (config('database.default') === 'sqlite') {
|
||||
$this->markTestIncomplete($message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue