diff --git a/tests/UpgradeTest.php b/tests/UpgradeTest.php deleted file mode 100644 index 640bb82..0000000 --- a/tests/UpgradeTest.php +++ /dev/null @@ -1,53 +0,0 @@ -app['db']->connection() instanceof SQLiteConnection) { - self::markTestSkipped('Not suppported in SQLite'); - } - - $migration = new \UpdateQueueMonitorTable(); - $migration->down(); - - $running = Monitor::query()->create([ - 'job_id' => 'foo', - ]); - - $succeeded = Monitor::query()->create([ - 'job_id' => 'foo', - 'failed' => false, - 'finished_at' => Carbon::now(), - 'finished_at_exact' => Carbon::now(), - ]); - - $failed = Monitor::query()->create([ - 'job_id' => 'foo', - 'failed' => true, - 'finished_at' => Carbon::now(), - 'finished_at_exact' => Carbon::now(), - ]); - - $migration->up(); - - $running->refresh(); - $succeeded->refresh(); - $failed->refresh(); - - self::assertSame(MonitorStatus::RUNNING, $running->status); - self::assertSame(MonitorStatus::SUCCEEDED, $succeeded->status); - self::assertSame(MonitorStatus::FAILED, $failed->status); - } -}