1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-15 14:42:31 +01:00
flox/backend/tests/ApplicationTest.php
Viktor Geringer 7544dbb688 display release dates for episodes (#58)
* remove laravel scout

* misc

* refactor with helper function and php 7

* display and refresh relases

* add translations

* add migration test

* remove refresh release dates

* update production files

* remove laravel scout fragments
2017-03-04 02:01:50 +01:00

42 lines
1.7 KiB
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'));
$this->assertTrue(Schema::hasColumn('episodes', 'src'));
$this->assertTrue(Schema::hasColumn('items', 'src'));
$this->assertTrue(Schema::hasTable('alternative_titles'));
$this->assertTrue(Schema::hasTable('alternative_titles'));
$this->assertTrue(Schema::hasColumn('settings', 'last_fetch_to_file_parser'));
$this->assertTrue(Schema::hasColumn('items', 'subtitles'));
$this->assertTrue(Schema::hasColumn('episodes', 'subtitles'));
$this->assertTrue(Schema::hasColumn('items', 'fp_name'));
$this->assertTrue(Schema::hasColumn('episodes', 'fp_name'));
$this->assertTrue(Schema::hasColumn('episodes', 'created_at'));
$this->assertTrue(Schema::hasColumn('episodes', 'updated_at'));
$this->assertTrue(Schema::hasColumn('items', 'last_seen_at'));
$this->assertTrue(Schema::hasColumn('episodes', 'release_episode'));
$this->assertTrue(Schema::hasColumn('episodes', 'release_season'));
}
/** @test */
public function it_can_call_homepage_successfully()
{
$response = $this->call('GET', '/');
$this->assertEquals(200, $response->status());
}
}