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()
96
96
public function testWarmupPassBuildDir ()
97
97
{
98
98
$ warmer = $ this ->createMock (CacheWarmerInterface::class);
99
- $ warmer
100
- ->expects ($ this ->once ())
101
- ->method ('isOptional ' )
102
- ->willReturn (false );
103
99
$ warmer
104
100
->expects ($ this ->once ())
105
101
->method ('warmUp ' )
@@ -110,7 +106,7 @@ public function testWarmupPassBuildDir()
110
106
$ aggregate ->warmUp ('cache_dir ' , 'build_dir ' );
111
107
}
112
108
113
- public function testWarmupOnOptionalWarmerDoNotPassBuildDir ()
109
+ public function testWarmupOnOptionalWarmerPassBuildDir ()
114
110
{
115
111
$ warmer = $ this ->createMock (CacheWarmerInterface::class);
116
112
$ warmer
@@ -120,10 +116,10 @@ public function testWarmupOnOptionalWarmerDoNotPassBuildDir()
120
116
$ warmer
121
117
->expects ($ this ->once ())
122
118
->method ('warmUp ' )
123
- ->with ('cache_dir ' , null );
119
+ ->with ('cache_dir ' , ' build_dir ' );
124
120
125
121
$ aggregate = new CacheWarmerAggregate ([$ warmer ]);
126
- $ aggregate ->enableOptionalWarmers ();
122
+ $ aggregate ->enableOnlyOptionalWarmers ();
127
123
$ aggregate ->warmUp ('cache_dir ' , 'build_dir ' );
128
124
}
129
125
You can’t perform that action at this time.
0 commit comments