Posts module: posts, drafts and scheduling, categories and tags

This commit is contained in:
Matthijs Iriks committed 2026-12-04 01:33:59 +01:00
1 parent a9a1625241
commit e093614169
18 files changed
+977 -30

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
<?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');
});