@@ -33,9 +33,9 @@ public function it_formats_header_in_valid_way_when_running_via_http()
3333 $ now = '2015-03-04 08:12:07 ' ;
3434 Carbon::setTestNow ($ now );
3535
36- DB ::shouldReceive ('getQueryLog ' )->once ()->withNoArgs ()->andReturn ([
37- ['query ' => 'foo ' , ' bindings ' => [] , 'time ' => 1.23 ],
38- ['query ' => 'bar ' , ' bindings ' => [] , 'time ' => 4.56 ],
36+ DB ::shouldReceive ('getRawQueryLog ' )->once ()->withNoArgs ()->andReturn ([
37+ ['raw_query ' => 'foo ' , 'time ' => 1.23 ],
38+ ['raw_query ' => 'bar ' , 'time ' => 4.56 ],
3939 ]);
4040 Auth::shouldReceive ('user ' )->once ()->withNoArgs ()->andReturn (null );
4141 \Illuminate \Support \Facades \Request::shouldReceive ('ip ' )->once ()->withNoArgs ()->andReturn ('127.0.0.1 ' );
@@ -79,7 +79,7 @@ public function it_formats_header_in_valid_way_when_running_in_console()
7979 $ now = '2015-03-04 08:12:07 ' ;
8080 Carbon::setTestNow ($ now );
8181
82- DB ::shouldReceive ('getQueryLog ' )->once ()->withNoArgs ()->andReturn ([]);
82+ DB ::shouldReceive ('getRawQueryLog ' )->once ()->withNoArgs ()->andReturn ([]);
8383 Auth::shouldReceive ('user ' )->once ()->withNoArgs ()->andReturn (null );
8484 \Illuminate \Support \Facades \Request::shouldReceive ('ip ' )->once ()->withNoArgs ()->andReturn ('127.0.0.1 ' );
8585 \Illuminate \Support \Facades \Request::shouldReceive ('userAgent ' )->once ()->withNoArgs ()->andReturn ('Mozilla/5.0 ' );
@@ -122,7 +122,7 @@ public function it_formats_line_in_valid_way_when_milliseconds_are_used()
122122 $ time = 617.24 ;
123123 $ sql = 'SELECT * FROM somewhere ' ;
124124 $ query ->shouldReceive ('number ' )->once ()->withNoArgs ()->andReturn ($ number );
125- $ query ->shouldReceive ('get ' )->once ()->withNoArgs ()->andReturn ($ sql );
125+ $ query ->shouldReceive ('rawQuery ' )->once ()->withNoArgs ()->andReturn ($ sql );
126126 $ query ->shouldReceive ('time ' )->once ()->withNoArgs ()->andReturn ($ time );
127127
128128 $ formatter = new Formatter ($ app , $ config );
@@ -155,7 +155,7 @@ public function it_formats_line_in_valid_way_when_custom_entry_format_was_used()
155155 $ time = 617.24 ;
156156 $ sql = 'SELECT * FROM somewhere ' ;
157157 $ query ->shouldReceive ('number ' )->once ()->withNoArgs ()->andReturn ($ number );
158- $ query ->shouldReceive ('get ' )->once ()->withNoArgs ()->andReturn ($ sql );
158+ $ query ->shouldReceive ('rawQuery ' )->once ()->withNoArgs ()->andReturn ($ sql );
159159 $ query ->shouldReceive ('time ' )->once ()->withNoArgs ()->andReturn ($ time );
160160
161161 $ formatter = new Formatter ($ app , $ config );
@@ -189,7 +189,7 @@ public function it_formats_line_in_valid_way_when_seconds_are_used()
189189 $ time = 617.24 ;
190190 $ sql = 'SELECT * FROM somewhere ' ;
191191 $ query ->shouldReceive ('number ' )->once ()->withNoArgs ()->andReturn ($ number );
192- $ query ->shouldReceive ('get ' )->once ()->withNoArgs ()->andReturn ($ sql );
192+ $ query ->shouldReceive ('rawQuery ' )->once ()->withNoArgs ()->andReturn ($ sql );
193193 $ query ->shouldReceive ('time ' )->once ()->withNoArgs ()->andReturn ($ time );
194194
195195 $ formatter = new Formatter ($ app , $ config );
0 commit comments