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()
107
107
public function testLogListener ()
108
108
{
109
109
$ exception = new \Exception ('Testing error handler ' );
110
+
111
+ $ responseMock = \Mockery::mock ('Rollbar\Response ' );
112
+ $ responseMock ->shouldReceive ('getStatus ' )->times (3 )->andReturn (200 );
110
113
111
114
$ clientMock = \Mockery::mock ('Rollbar\RollbarLogger ' );
112
115
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 ) ;
115
118
116
119
$ handlerMock = \Mockery::mock ('Rollbar\Laravel\RollbarLogHandler ' , [$ clientMock , $ this ->app ]);
117
120
You can’t perform that action at this time.
0 commit comments