2828use Symfony \Component \HttpFoundation \Response ;
2929use Symfony \Component \Lock \Exception \LockReleasingException ;
3030use Symfony \Component \Lock \LockFactory ;
31- use Symfony \Component \Lock \LockInterface ;
31+ use Symfony \Component \Lock \SharedLockInterface ;
3232use Symfony \Component \OptionsResolver \Exception \MissingOptionsException ;
3333
3434class Psr6StoreTest extends TestCase
@@ -661,15 +661,14 @@ public function testAutoPruneExpiredEntries(): void
661661 ->expects ($ this ->exactly (3 ))
662662 ->method ('prune ' );
663663
664- $ lock = $ this ->createMock (LockInterface ::class);
664+ $ lock = $ this ->createMock (SharedLockInterface ::class);
665665 $ lock
666666 ->expects ($ this ->exactly (3 ))
667667 ->method ('acquire ' )
668668 ->willReturn (true );
669669 $ lock
670670 ->expects ($ this ->exactly (3 ))
671- ->method ('release ' )
672- ->willReturn (true );
671+ ->method ('release ' );
673672
674673 $ lockFactory = $ this ->createMock (LockFactory::class);
675674 $ lockFactory
@@ -734,7 +733,7 @@ public function testAutoPruneIsSkippedIfPruningIsAlreadyInProgress(): void
734733 ->expects ($ this ->never ())
735734 ->method ('prune ' );
736735
737- $ lock = $ this ->createMock (LockInterface ::class);
736+ $ lock = $ this ->createMock (SharedLockInterface ::class);
738737 $ lock
739738 ->expects ($ this ->exactly (3 ))
740739 ->method ('acquire ' )
@@ -777,7 +776,7 @@ public function testItFailsWithoutCacheDirectoryForLockStore(): void
777776
778777 public function testUnlockReturnsFalseOnLockReleasingException (): void
779778 {
780- $ lock = $ this ->createMock (LockInterface ::class);
779+ $ lock = $ this ->createMock (SharedLockInterface ::class);
781780 $ lock
782781 ->expects ($ this ->once ())
783782 ->method ('release ' )
@@ -802,7 +801,7 @@ public function testUnlockReturnsFalseOnLockReleasingException(): void
802801
803802 public function testLockReleasingExceptionIsIgnoredOnCleanup (): void
804803 {
805- $ lock = $ this ->createMock (LockInterface ::class);
804+ $ lock = $ this ->createMock (SharedLockInterface ::class);
806805 $ lock
807806 ->expects ($ this ->once ())
808807 ->method ('release ' )
0 commit comments