@@ -166,11 +166,10 @@ public function testHandleWithLogChannel()
166
166
$ l ->logKernelException ($ event );
167
167
$ l ->onKernelException ($ event );
168
168
169
- $ this ->assertEquals (new Response ('foo ' , 401 ), $ event ->getResponse ());
170
- $ this ->assertCount (0 , $ defaultLogger ->getLogs ('error ' ));
171
- $ this ->assertCount (0 , $ defaultLogger ->getLogs ('warning ' ));
172
- $ this ->assertCount (0 , $ channelLoger ->getLogs ('error ' ));
173
- $ this ->assertCount (1 , $ channelLoger ->getLogs ('warning ' ));
169
+ $ this ->assertCount (0 , $ defaultLogger ->getLogsForLevel ('error ' ));
170
+ $ this ->assertCount (0 , $ defaultLogger ->getLogsForLevel ('warning ' ));
171
+ $ this ->assertCount (0 , $ channelLoger ->getLogsForLevel ('error ' ));
172
+ $ this ->assertCount (1 , $ channelLoger ->getLogsForLevel ('warning ' ));
174
173
}
175
174
176
175
public function testHandleWithLoggerChannelNotUsed ()
@@ -193,14 +192,12 @@ public function testHandleWithLoggerChannelNotUsed()
193
192
$ l ->logKernelException ($ event );
194
193
$ l ->onKernelException ($ event );
195
194
196
- $ this ->assertEquals (new Response ('foo ' , 401 ), $ event ->getResponse ());
197
-
198
195
$ this ->assertSame (0 , $ defaultLogger ->countErrors ());
199
- $ this ->assertCount (0 , $ defaultLogger ->getLogs ('critical ' ));
200
- $ this ->assertCount (1 , $ defaultLogger ->getLogs ('warning ' ));
201
- $ this ->assertCount (0 , $ channelLoger ->getLogs ('warning ' ));
202
- $ this ->assertCount (0 , $ channelLoger ->getLogs ('error ' ));
203
- $ this ->assertCount (0 , $ channelLoger ->getLogs ('critical ' ));
196
+ $ this ->assertCount (0 , $ defaultLogger ->getLogsForLevel ('critical ' ));
197
+ $ this ->assertCount (1 , $ defaultLogger ->getLogsForLevel ('warning ' ));
198
+ $ this ->assertCount (0 , $ channelLoger ->getLogsForLevel ('warning ' ));
199
+ $ this ->assertCount (0 , $ channelLoger ->getLogsForLevel ('error ' ));
200
+ $ this ->assertCount (0 , $ channelLoger ->getLogsForLevel ('critical ' ));
204
201
}
205
202
206
203
public function testHandleClassImplementingInterfaceWithLogLevelAttribute ()
0 commit comments