Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | protected function prepareApp() |
||
20 | { |
||
21 | $this->app = m::mock(App::class)->makePartial(); |
||
22 | Container::setInstance($this->app); |
||
23 | $this->app->shouldReceive('make')->with(App::class)->andReturn($this->app); |
||
24 | $this->app->shouldReceive('isDebug')->andReturnTrue(); |
||
25 | $this->config = m::mock(Config::class)->makePartial(); |
||
26 | $this->config->shouldReceive('get')->with('app.show_error_msg')->andReturnTrue(); |
||
27 | $this->app->shouldReceive('get')->with('config')->andReturn($this->config); |
||
28 | $this->app->shouldReceive('runningInConsole')->andReturn(false); |
||
29 | } |
||
31 |