16 lines
590 B
PHP
16 lines
590 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use IriksIT\Manager\Facades\Manager;
|
|
use IriksIT\Manager\Tests\PostsOffTestCase;
|
|
|
|
uses(PostsOffTestCase::class);
|
|
|
|
it('has no posts, labels, tables or rights for a site without posts', function () {
|
|
expect(Route::has('manager.posts.index'))->toBeFalse()
|
|
->and(Route::has('manager.labels.index'))->toBeFalse()
|
|
->and(Schema::hasTable('manager_posts'))->toBeFalse()
|
|
->and(Schema::hasTable('manager_post_labels'))->toBeFalse()
|
|
->and(Manager::permissionValues())->not->toContain('posts.view', 'posts.labels');
|
|
});
|