2016-12-15 16:44:27 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
|
|
|
|
class ApplicationTest extends TestCase {
|
|
|
|
|
|
|
|
use DatabaseMigrations;
|
|
|
|
|
2016-12-16 14:06:50 +01:00
|
|
|
/** @test */
|
|
|
|
public function it_can_create_migrations()
|
2016-12-15 16:44:27 +01:00
|
|
|
{
|
|
|
|
$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'));
|
|
|
|
}
|
|
|
|
|
2016-12-16 14:06:50 +01:00
|
|
|
/** @test */
|
|
|
|
public function it_can_call_homepage_successfully()
|
2016-12-15 16:44:27 +01:00
|
|
|
{
|
|
|
|
$response = $this->call('GET', '/');
|
|
|
|
|
|
|
|
$this->assertEquals(200, $response->status());
|
|
|
|
}
|
|
|
|
}
|