PR CI / ledger (pull_request) Successful in 3s
PR CI / flow (pull_request) Successful in 4s
PR CI / ui (pull_request) Successful in 17s
PR CI / test (lowest) (pull_request) Successful in 45s
PR CI / test (stable) (pull_request) Successful in 48s
PR CI / security (pull_request) Successful in 54s
PR CI / pr-ci (pull_request) Successful in 1s
PR CI / release-automerge (pull_request) Successful in 3s
24 lines
929 B
PHP
24 lines
929 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use Illuminate\Support\Facades\Schema;
|
|
use IriksIT\Manager\Support\ModuleRegistry;
|
|
use IriksIT\Manager\Tests\RenamedTestCase;
|
|
|
|
uses(RenamedTestCase::class);
|
|
|
|
it('moves routes, tables and the menu out of the way of the site', function () {
|
|
expect(Route::has('pkg-manager.dashboard'))->toBeTrue()
|
|
->and(Route::has('pkg-manager.posts.index'))->toBeTrue()
|
|
->and(Route::has('manager.dashboard'))->toBeFalse()
|
|
->and(Schema::hasTable('pkg_posts'))->toBeTrue()
|
|
->and(Schema::hasTable('site_files'))->toBeTrue()
|
|
->and(Schema::hasTable('manager_posts'))->toBeFalse()
|
|
->and(Schema::hasTable('pkg_media'))->toBeFalse();
|
|
|
|
$routes = collect(app(ModuleRegistry::class)->navigation())->pluck('route');
|
|
|
|
expect($routes)->not->toBeEmpty()
|
|
->and($routes->every(fn ($route) => str_starts_with($route, 'pkg-manager.')))->toBeTrue();
|
|
});
|