mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
5e15cc3bbe
Signed-off-by: snipe <snipe@snipe.net>
21 lines
520 B
PHP
21 lines
520 B
PHP
<?php
|
|
|
|
namespace Tests\Support;
|
|
|
|
trait CanSkipTests
|
|
{
|
|
public function markIncompleteIfMySQL($message = 'Test skipped due to database driver being MySQL.')
|
|
{
|
|
if (config('database.default') === 'mysql') {
|
|
$this->markTestIncomplete($message);
|
|
}
|
|
}
|
|
|
|
public function markIncompleteIfSqlite($message = 'Test skipped due to database driver being sqlite.')
|
|
{
|
|
if (config('database.default') === 'sqlite') {
|
|
$this->markTestIncomplete($message);
|
|
}
|
|
}
|
|
}
|