Skip to content

Commit eda025d

Browse files
committed
Switch to ExpectUserDeprecationMessageTrait
1 parent b3958d5 commit eda025d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/DependencyInjection/FrameworkExtensionTestCase.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Psr\Cache\CacheItemPoolInterface;
1515
use Psr\Log\LoggerAwareInterface;
16-
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
16+
use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait;
1717
use Symfony\Bundle\FrameworkBundle\DependencyInjection\FrameworkExtension;
1818
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
1919
use Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Messenger\DummyMessage;
@@ -98,7 +98,7 @@
9898

9999
abstract class FrameworkExtensionTestCase extends TestCase
100100
{
101-
use ExpectDeprecationTrait;
101+
use ExpectUserDeprecationMessageTrait;
102102

103103
private static array $containerCache = [];
104104

@@ -1863,7 +1863,7 @@ public function testCacheTaggableTagAppliedToPools()
18631863
*/
18641864
public function testTaggableCacheAppIsDeprecated()
18651865
{
1866-
$this->expectDeprecation('Since symfony/framework-bundle 7.2: Using the "tags" option with the "cache.app" adapter is deprecated. You can use the "cache.app.taggable" adapter instead (aliased to the TagAwareCacheInterface for autowiring).');
1866+
$this->expectUserDeprecationMessage('Since symfony/framework-bundle 7.2: Using the "tags" option with the "cache.app" adapter is deprecated. You can use the "cache.app.taggable" adapter instead (aliased to the TagAwareCacheInterface for autowiring).');
18671867

18681868
$this->createContainerFromFile('cache_cacheapp_tagaware');
18691869
}

0 commit comments

Comments
 (0)