@@ -16,7 +16,7 @@ public function testNullIsReturnedWhenItemNotFound()
1616 $ store = $ this ->getStore ();
1717 $ table = m::mock ('StdClass ' );
1818 $ store ->getConnection ()->shouldReceive ('table ' )->once ()->with ('table ' )->andReturn ($ table );
19- $ table ->shouldReceive ('where ' )->once ()->with ('key ' , 'prefixfoo ' )->andReturn ($ table );
19+ $ table ->shouldReceive ('where ' )->once ()->with ('key ' , '= ' , ' prefixfoo ' )->andReturn ($ table );
2020 $ table ->shouldReceive ('first ' )->once ()->andReturn (null );
2121
2222 $ this ->assertNull ($ store ->get ('foo ' ));
@@ -28,7 +28,7 @@ public function testNullIsReturnedAndItemDeletedWhenItemIsExpired()
2828 $ store = $ this ->getMock ('Illuminate\Cache\DatabaseStore ' , array ('forget ' ), $ this ->getMocks ());
2929 $ table = m::mock ('StdClass ' );
3030 $ store ->getConnection ()->shouldReceive ('table ' )->once ()->with ('table ' )->andReturn ($ table );
31- $ table ->shouldReceive ('where ' )->once ()->with ('key ' , 'prefixfoo ' )->andReturn ($ table );
31+ $ table ->shouldReceive ('where ' )->once ()->with ('key ' , '= ' , ' prefixfoo ' )->andReturn ($ table );
3232 $ table ->shouldReceive ('first ' )->once ()->andReturn ((object ) array ('expiration ' => 1 ));
3333 $ store ->expects ($ this ->once ())->method ('forget ' )->with ($ this ->equalTo ('foo ' ))->will ($ this ->returnValue (null ));
3434
@@ -41,7 +41,7 @@ public function testDecryptedValueIsReturnedWhenItemIsValid()
4141 $ store = $ this ->getStore ();
4242 $ table = m::mock ('StdClass ' );
4343 $ store ->getConnection ()->shouldReceive ('table ' )->once ()->with ('table ' )->andReturn ($ table );
44- $ table ->shouldReceive ('where ' )->once ()->with ('key ' , 'prefixfoo ' )->andReturn ($ table );
44+ $ table ->shouldReceive ('where ' )->once ()->with ('key ' , '= ' , ' prefixfoo ' )->andReturn ($ table );
4545 $ table ->shouldReceive ('first ' )->once ()->andReturn ((object ) array ('value ' => 'bar ' , 'expiration ' => 999999999999999 ));
4646 $ store ->getEncrypter ()->shouldReceive ('decrypt ' )->once ()->with ('bar ' )->andReturn ('bar ' );
4747
@@ -73,7 +73,7 @@ public function testEncryptedValueIsUpdatedWhenInsertThrowsException()
7373 {
7474 throw new Exception ;
7575 });
76- $ table ->shouldReceive ('where ' )->once ()->with ('key ' , 'prefixfoo ' )->andReturn ($ table );
76+ $ table ->shouldReceive ('where ' )->once ()->with ('key ' , '= ' , ' prefixfoo ' )->andReturn ($ table );
7777 $ table ->shouldReceive ('update ' )->once ()->with (array ('value ' => 'bar ' , 'expiration ' => 61 ));
7878
7979 $ store ->put ('foo ' , 'bar ' , 1 );
@@ -93,7 +93,7 @@ public function testItemsMayBeRemovedFromCache()
9393 $ store = $ this ->getStore ();
9494 $ table = m::mock ('StdClass ' );
9595 $ store ->getConnection ()->shouldReceive ('table ' )->once ()->with ('table ' )->andReturn ($ table );
96- $ table ->shouldReceive ('where ' )->once ()->with ('key ' , 'prefixfoo ' )->andReturn ($ table );
96+ $ table ->shouldReceive ('where ' )->once ()->with ('key ' , '= ' , ' prefixfoo ' )->andReturn ($ table );
9797 $ table ->shouldReceive ('delete ' )->once ();
9898
9999 $ store ->forget ('foo ' );
0 commit comments