Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
crynobone authored Jan 26, 2025
1 parent a7bda0e commit e2bf10a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/SushiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Validator;
use Orchestra\Testbench\Concerns\HandlesAnnotations;
use Orchestra\Testbench\TestCase;

class SushiTest extends TestCase
Expand Down Expand Up @@ -187,6 +188,10 @@ public function it_runs_method_after_migration_when_defined()
* */
function sushi_models_can_relate_to_models_in_regular_sqlite_databases()
{
if (trait_exists(HandlesAnnotations::class)) {
$this->markTestSkipped('Requires HandlesAnnotation trait to define sqlite connection using PHPUnit annotation');
}

$this->loadMigrationsFrom(__DIR__ . '/database/migrations');
$this->artisan('migrate', ['--database' => 'testbench-sqlite'])->run();

Expand Down

0 comments on commit e2bf10a

Please sign in to comment.