Let route names and tables move, and add manager:import
This commit is contained in:
1 parent
984024eb85
commit
60ad85a621
45 files changed
+491
-73
No files matched your search
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use IriksIT\Manager\Support\Names;
|
||||
use IriksIT\Manager\Tests\TestCase;
|
||||
|
||||
uses(TestCase::class);
|
||||
|
||||
it('keeps the names of every earlier version by default', function () {
|
||||
expect(Names::route('posts.index'))->toBe('manager.posts.index')
|
||||
->and(Names::table('posts'))->toBe('manager_posts')
|
||||
->and(Route::has('manager.dashboard'))->toBeTrue()
|
||||
->and(Route::has('manager.media.file'))->toBeTrue()
|
||||
->and(Schema::hasTable('manager_posts'))->toBeTrue()
|
||||
->and(Schema::hasTable('manager_media'))->toBeTrue();
|
||||
});
|
||||
Reference in new issue
Block a user