File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -95,14 +95,14 @@ public function testCacheLifetime()
9595 {
9696 $ cacheItem = $ this ->prophesize (CacheItemInterface::class);
9797 $ cacheItem ->isHit ()->shouldBeCalledOnce ()->willReturn (false );
98- $ cacheItem ->set (Argument::any ())->shouldBeCalledOnce ();
99- $ cacheItem ->expiresAfter (6 * 60 * 60 )->shouldBeCalledOnce ();
98+ $ cacheItem ->set (Argument::any ())->shouldBeCalledOnce ()-> willReturn ( $ cacheItem -> reveal ()) ;
99+ $ cacheItem ->expiresAfter (6 * 60 * 60 )->shouldBeCalledOnce ()-> willReturn ( $ cacheItem -> reveal ()) ;
100100
101101 $ cache = $ this ->prophesize (CacheItemPoolInterface::class);
102102 $ cache ->getItem (Argument::type ('string ' ))
103103 ->shouldBeCalledTimes (2 )
104104 ->willReturn ($ cacheItem ->reveal ());
105- $ cache ->save ($ cacheItem ->reveal ())->shouldBeCalledOnce ();
105+ $ cache ->save ($ cacheItem ->reveal ())->shouldBeCalledOnce ()-> willReturn ( true ) ;
106106
107107 $ this ->impl ->setCache ($ cache ->reveal ());
108108
You can’t perform that action at this time.
0 commit comments