File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -107,11 +107,14 @@ public function testMergedContext()
107107 public function testLogListener ()
108108 {
109109 $ exception = new \Exception ('Testing error handler ' );
110+
111+ $ responseMock = \Mockery::mock ('Rollbar\Response ' );
112+ $ responseMock ->shouldReceive ('getStatus ' )->times (3 )->andReturn (200 );
110113
111114 $ clientMock = \Mockery::mock ('Rollbar\RollbarLogger ' );
112115
113- $ clientMock ->shouldReceive ('log ' )->times (2 );
114- $ clientMock ->shouldReceive ('log ' )->times (1 )->with ('error ' , $ exception , ['foo ' => 'bar ' ]);
116+ $ clientMock ->shouldReceive ('log ' )->times (2 )-> andReturn ( $ responseMock ) ;
117+ $ clientMock ->shouldReceive ('log ' )->times (1 )->with ('error ' , $ exception , ['foo ' => 'bar ' ])-> andReturn ( $ responseMock ) ;
115118
116119 $ handlerMock = \Mockery::mock ('Rollbar\Laravel\RollbarLogHandler ' , [$ clientMock , $ this ->app ]);
117120
You can’t perform that action at this time.
0 commit comments