1111
1212namespace FOS \HttpCacheBundle \Tests \Functional \EventListener ;
1313
14+ use FOS \HttpCacheBundle \CacheManager ;
1415use Symfony \Bundle \FrameworkBundle \Test \WebTestCase ;
1516
1617class TagListenerTest extends WebTestCase
@@ -34,7 +35,7 @@ public function testAnnotationTagsAreInvalidated()
3435
3536 $ client ->getContainer ()->mock (
3637 'fos_http_cache.cache_manager ' ,
37- ' \FOS\HttpCacheBundle\ CacheManager'
38+ CacheManager::class
3839 )
3940 ->shouldReceive ('supports ' )->andReturn (true )
4041 ->shouldReceive ('invalidate ' )->with (array ('X-Cache-Tags ' => '(all \\-items)(,.+)?$ ' ))
@@ -51,7 +52,7 @@ public function testErrorIsNotInvalidated()
5152
5253 $ client ->getContainer ()->mock (
5354 'fos_http_cache.cache_manager ' ,
54- ' \FOS\HttpCacheBundle\ CacheManager'
55+ CacheManager::class
5556 )
5657 ->shouldReceive ('supports ' )->andReturn (true )
5758 ->shouldReceive ('invalidate ' )->never ()
@@ -76,7 +77,7 @@ public function testConfigurationTagsAreInvalidated()
7677
7778 $ client ->getContainer ()->mock (
7879 'fos_http_cache.cache_manager ' ,
79- ' \FOS\HttpCacheBundle\ CacheManager'
80+ CacheManager::class
8081 )
8182 ->shouldReceive ('supports ' )->andReturn (true )
8283 ->shouldReceive ('invalidate ' )->once ()->with (array ('X-Cache-Tags ' => '(area|area \\-51)(,.+)?$ ' ))
0 commit comments