Files
laravel-manager/tests/Feature/MediaOffTest.php

15 lines
468 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use IriksIT\Manager\Tests\MediaOffTestCase;
uses(MediaOffTestCase::class);
it('has no routes, no public file route and no table for a site without media', function () {
expect(Route::has('manager.media.index'))->toBeFalse()
->and(Route::has('manager.media.file'))->toBeFalse()
->and(Schema::hasTable('manager_media'))->toBeFalse();
$this->get('/media-files/1/x.png/view')->assertNotFound();
});