28
28
use Symfony \Component \HttpFoundation \Response ;
29
29
use Symfony \Component \Lock \Exception \LockReleasingException ;
30
30
use Symfony \Component \Lock \LockFactory ;
31
- use Symfony \Component \Lock \LockInterface ;
31
+ use Symfony \Component \Lock \SharedLockInterface ;
32
32
use Symfony \Component \OptionsResolver \Exception \MissingOptionsException ;
33
33
34
34
class Psr6StoreTest extends TestCase
@@ -661,15 +661,14 @@ public function testAutoPruneExpiredEntries(): void
661
661
->expects ($ this ->exactly (3 ))
662
662
->method ('prune ' );
663
663
664
- $ lock = $ this ->createMock (LockInterface ::class);
664
+ $ lock = $ this ->createMock (SharedLockInterface ::class);
665
665
$ lock
666
666
->expects ($ this ->exactly (3 ))
667
667
->method ('acquire ' )
668
668
->willReturn (true );
669
669
$ lock
670
670
->expects ($ this ->exactly (3 ))
671
- ->method ('release ' )
672
- ->willReturn (true );
671
+ ->method ('release ' );
673
672
674
673
$ lockFactory = $ this ->createMock (LockFactory::class);
675
674
$ lockFactory
@@ -734,7 +733,7 @@ public function testAutoPruneIsSkippedIfPruningIsAlreadyInProgress(): void
734
733
->expects ($ this ->never ())
735
734
->method ('prune ' );
736
735
737
- $ lock = $ this ->createMock (LockInterface ::class);
736
+ $ lock = $ this ->createMock (SharedLockInterface ::class);
738
737
$ lock
739
738
->expects ($ this ->exactly (3 ))
740
739
->method ('acquire ' )
@@ -777,7 +776,7 @@ public function testItFailsWithoutCacheDirectoryForLockStore(): void
777
776
778
777
public function testUnlockReturnsFalseOnLockReleasingException (): void
779
778
{
780
- $ lock = $ this ->createMock (LockInterface ::class);
779
+ $ lock = $ this ->createMock (SharedLockInterface ::class);
781
780
$ lock
782
781
->expects ($ this ->once ())
783
782
->method ('release ' )
@@ -802,7 +801,7 @@ public function testUnlockReturnsFalseOnLockReleasingException(): void
802
801
803
802
public function testLockReleasingExceptionIsIgnoredOnCleanup (): void
804
803
{
805
- $ lock = $ this ->createMock (LockInterface ::class);
804
+ $ lock = $ this ->createMock (SharedLockInterface ::class);
806
805
$ lock
807
806
->expects ($ this ->once ())
808
807
->method ('release ' )
0 commit comments