mirror of
https://github.com/devfake/flox.git
synced 2024-11-16 15:12:32 +01:00
26 lines
682 B
PHP
26 lines
682 B
PHP
|
<?php
|
||
|
|
||
|
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||
|
use Illuminate\Support\Facades\Schema;
|
||
|
|
||
|
class ApplicationTest extends TestCase {
|
||
|
|
||
|
use DatabaseMigrations;
|
||
|
|
||
|
public function testMigrations()
|
||
|
{
|
||
|
$this->assertTrue(Schema::hasTable('users'));
|
||
|
$this->assertTrue(Schema::hasTable('items'));
|
||
|
$this->assertTrue(Schema::hasTable('settings'));
|
||
|
$this->assertTrue(Schema::hasTable('episodes'));
|
||
|
$this->assertTrue(Schema::hasColumn('settings', 'episode_spoiler_protection'));
|
||
|
}
|
||
|
|
||
|
public function testWebsiteRequest()
|
||
|
{
|
||
|
$response = $this->call('GET', '/');
|
||
|
|
||
|
$this->assertEquals(200, $response->status());
|
||
|
}
|
||
|
}
|