File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
src/Symfony/Component/HttpKernel/Tests/CacheWarmer Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -96,10 +96,6 @@ public function testWarmupChecksInvalidFiles()
9696 public function testWarmupPassBuildDir ()
9797 {
9898 $ warmer = $ this ->createMock (CacheWarmerInterface::class);
99- $ warmer
100- ->expects ($ this ->once ())
101- ->method ('isOptional ' )
102- ->willReturn (false );
10399 $ warmer
104100 ->expects ($ this ->once ())
105101 ->method ('warmUp ' )
@@ -110,7 +106,7 @@ public function testWarmupPassBuildDir()
110106 $ aggregate ->warmUp ('cache_dir ' , 'build_dir ' );
111107 }
112108
113- public function testWarmupOnOptionalWarmerDoNotPassBuildDir ()
109+ public function testWarmupOnOptionalWarmerPassBuildDir ()
114110 {
115111 $ warmer = $ this ->createMock (CacheWarmerInterface::class);
116112 $ warmer
@@ -120,10 +116,10 @@ public function testWarmupOnOptionalWarmerDoNotPassBuildDir()
120116 $ warmer
121117 ->expects ($ this ->once ())
122118 ->method ('warmUp ' )
123- ->with ('cache_dir ' , null );
119+ ->with ('cache_dir ' , ' build_dir ' );
124120
125121 $ aggregate = new CacheWarmerAggregate ([$ warmer ]);
126- $ aggregate ->enableOptionalWarmers ();
122+ $ aggregate ->enableOnlyOptionalWarmers ();
127123 $ aggregate ->warmUp ('cache_dir ' , 'build_dir ' );
128124 }
129125
You can’t perform that action at this time.
0 commit comments