mirror of
https://github.com/devfake/flox.git
synced 2024-11-16 15:12:32 +01:00
28 lines
741 B
PHP
28 lines
741 B
PHP
<?php
|
|
|
|
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class ApplicationTest extends TestCase {
|
|
|
|
use DatabaseMigrations;
|
|
|
|
/** @test */
|
|
public function it_can_create_migrations()
|
|
{
|
|
$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'));
|
|
}
|
|
|
|
/** @test */
|
|
public function it_can_call_homepage_successfully()
|
|
{
|
|
$response = $this->call('GET', '/');
|
|
|
|
$this->assertEquals(200, $response->status());
|
|
}
|
|
}
|