Fix broken session driver test
This commit is contained in:
		
							parent
							
								
									e5c59c4984
								
							
						
					
					
						commit
						bc3cb7bfd5
					
				| @ -37,8 +37,8 @@ class SetSessionDriverTest extends MiddlewareTestCase | |||||||
|      */ |      */ | ||||||
|     public function testProductionEnvironment() |     public function testProductionEnvironment() | ||||||
|     { |     { | ||||||
|         $this->appMock->shouldReceive('environment')->withNoArgs()->once()->andReturn('production'); |         $this->config->shouldReceive('get')->once()->with('app.debug')->andReturn(false); | ||||||
|         $this->config->shouldReceive('set')->with('session.driver', 'array')->once()->andReturnNull(); |         $this->config->shouldReceive('set')->once()->with('session.driver', 'array')->andReturnNull(); | ||||||
| 
 | 
 | ||||||
|         $this->getMiddleware()->handle($this->request, $this->getClosureAssertions()); |         $this->getMiddleware()->handle($this->request, $this->getClosureAssertions()); | ||||||
|     } |     } | ||||||
| @ -48,11 +48,10 @@ class SetSessionDriverTest extends MiddlewareTestCase | |||||||
|      */ |      */ | ||||||
|     public function testLocalEnvironment() |     public function testLocalEnvironment() | ||||||
|     { |     { | ||||||
|         $this->appMock->shouldReceive('environment')->withNoArgs()->once()->andReturn('local'); |         $this->config->shouldReceive('get')->once()->with('app.debug')->andReturn(true); | ||||||
|         $this->appMock->shouldReceive('make')->with(LaravelDebugbar::class)->once()->andReturnSelf(); |         $this->appMock->shouldReceive('make')->once()->with(LaravelDebugbar::class)->andReturnSelf(); | ||||||
|         $this->appMock->shouldReceive('disable')->withNoArgs()->once()->andReturnNull(); |         $this->appMock->shouldReceive('disable')->once()->withNoArgs()->andReturnNull(); | ||||||
| 
 |         $this->config->shouldReceive('set')->once()->with('session.driver', 'array')->andReturnNull(); | ||||||
|         $this->config->shouldReceive('set')->with('session.driver', 'array')->once()->andReturnNull(); |  | ||||||
| 
 | 
 | ||||||
|         $this->getMiddleware()->handle($this->request, $this->getClosureAssertions()); |         $this->getMiddleware()->handle($this->request, $this->getClosureAssertions()); | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dane Everitt
						Dane Everitt