Skip to content

Commit f64d3fc

Browse files
author
Robin Chalas
committed
minor #32938 [Lock] Legacy test should implement legacy interface (Simperfit)
This PR was merged into the 4.4 branch. Discussion ---------- [Lock] Legacy test should implement legacy interface | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | no <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> <!-- Replace this notice by a short README for your feature/bugfix. This will help people understand your PR and can be used as a start for the documentation. Additionally (see https://symfony.com/roadmap): - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against branch 4.4. - Legacy code removals go to the master branch. --> This was updated wrongly when working on the removing the interface usage. Commits ------- 920db2f [Lock] Legacy test should implement legacy interface
2 parents 3e523dd + 920db2f commit f64d3fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/Lock/Tests/LockTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use Symfony\Component\Lock\Key;
1919
use Symfony\Component\Lock\Lock;
2020
use Symfony\Component\Lock\PersistingStoreInterface;
21+
use Symfony\Component\Lock\StoreInterface;
2122

2223
/**
2324
* @author Jérémy Derussé <jeremy@derusse.com>
@@ -56,7 +57,7 @@ public function testAcquireNoBlockingStoreInterface()
5657
public function testPassingOldStoreInterface()
5758
{
5859
$key = new Key(uniqid(__METHOD__, true));
59-
$store = $this->getMockBuilder(PersistingStoreInterface::class)->getMock();
60+
$store = $this->getMockBuilder(StoreInterface::class)->getMock();
6061
$lock = new Lock($key, $store);
6162

6263
$store

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy