File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class DebugEngineTest extends TestCase
4242 public function setUp ()
4343 {
4444 parent ::setUp ();
45- $ mock = $ this ->getMock ('Cake\Cache\CacheEngine ' );
45+ $ mock = $ this ->getMockBuilder ('Cake\Cache\CacheEngine ' )-> getMock ( );
4646 $ this ->mock = $ mock ;
4747 $ this ->engine = new DebugEngine ($ mock );
4848 $ this ->engine ->init ();
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ public function testClearCacheNoGet()
6969 */
7070 public function testClearCache ()
7171 {
72- $ mock = $ this ->getMock ('Cake\Cache\CacheEngine ' );
72+ $ mock = $ this ->getMockBuilder ('Cake\Cache\CacheEngine ' )-> getMock ( );
7373 $ mock ->expects ($ this ->once ())
7474 ->method ('init ' )
7575 ->will ($ this ->returnValue (true ));
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ public function testLog()
6969 */
7070 public function testLogDecorates ()
7171 {
72- $ orig = $ this ->getMock ('Cake\Database\Log\QueryLogger ' );
72+ $ orig = $ this ->getMockBuilder ('Cake\Database\Log\QueryLogger ' )-> getMock ( );
7373 $ orig ->expects ($ this ->once ())
7474 ->method ('log ' );
7575
You can’t perform that action at this time.
0 commit comments