11
11
12
12
namespace Symfony \Component \HttpKernel \Tests \DependencyInjection ;
13
13
14
+ use Symfony \Bridge \PhpUnit \ErrorAssert ;
14
15
use Symfony \Component \DependencyInjection \Reference ;
15
16
use Symfony \Component \HttpKernel \DependencyInjection \AddCacheWarmerPass ;
16
17
@@ -50,7 +51,7 @@ public function testThatCacheWarmersAreProcessedInPriorityOrder()
50
51
new Reference ('my_cache_warmer_service3 ' ),
51
52
));
52
53
53
- $ addCacheWarmerPass = new AddCacheWarmerPass ();
54
+ $ addCacheWarmerPass = new AddCacheWarmerPass (' cache_warmer ' , ' kernel.cache_warmer ' );
54
55
$ addCacheWarmerPass ->process ($ container );
55
56
}
56
57
@@ -70,7 +71,7 @@ public function testThatCompilerPassIsIgnoredIfThereIsNoCacheWarmerDefinition()
70
71
->will ($ this ->returnValue (false ));
71
72
$ definition ->expects ($ this ->never ())->method ('replaceArgument ' );
72
73
73
- $ addCacheWarmerPass = new AddCacheWarmerPass ();
74
+ $ addCacheWarmerPass = new AddCacheWarmerPass (' cache_warmer ' , ' kernel.cache_warmer ' );
74
75
$ addCacheWarmerPass ->process ($ container );
75
76
}
76
77
@@ -93,7 +94,7 @@ public function testThatCacheWarmersMightBeNotDefined()
93
94
94
95
$ definition ->expects ($ this ->never ())->method ('replaceArgument ' );
95
96
96
- $ addCacheWarmerPass = new AddCacheWarmerPass ();
97
+ $ addCacheWarmerPass = new AddCacheWarmerPass (' cache_warmer ' , ' kernel.cache_warmer ' );
97
98
$ addCacheWarmerPass ->process ($ container );
98
99
}
99
100
}
0 commit comments