1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-16 15:12:32 +01:00
flox/backend/tests/ApplicationTest.php

26 lines
682 B
PHP
Raw Normal View History

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;
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());
}
}