File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change 5
5
use Igniter \Api \Classes \ApiManager ;
6
6
use Igniter \Api \Tests \Fixtures \TestResource ;
7
7
use Igniter \Flame \Support \Facades \Igniter ;
8
- use Illuminate \Database \Connection ;
9
- use Illuminate \Database \Schema \Builder ;
10
8
use Illuminate \Routing \Router ;
11
9
use Illuminate \Routing \RouteRegistrar ;
12
10
use Illuminate \Support \Facades \Route ;
69
67
70
68
it ('does not register routes when database does not exist ' , function () {
71
69
Igniter::shouldReceive ('hasDatabase ' )->andReturnFalse ();
72
- $ schema = $ this ->createMock (Builder::class);
73
- $ connection = $ this ->createMock (Connection::class);
74
- $ connection ->expects ($ this ->once ())->method ('getSchemaBuilder ' )->willReturn ($ schema );
75
- $ schema ->expects ($ this ->once ())->method ('hasTable ' )->with ('settings ' )->willReturn (false );
76
- app ()->instance ('db.connection ' , $ connection );
77
70
Schema::shouldReceive ('hasTable ' )->with ('igniter_api_resources ' )->never ();
78
71
Route::shouldReceive ('middleware ' )->never ();
79
72
You can’t perform that action at this time.
0 commit comments