8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 19af005 + 7bc11b6 commit 2caeb02Copy full SHA for 2caeb02
Tests/CacheWarmer/CacheWarmerAggregateTest.php
@@ -96,10 +96,6 @@ public function testWarmupChecksInvalidFiles()
96
public function testWarmupPassBuildDir()
97
{
98
$warmer = $this->createMock(CacheWarmerInterface::class);
99
- $warmer
100
- ->expects($this->once())
101
- ->method('isOptional')
102
- ->willReturn(false);
103
$warmer
104
->expects($this->once())
105
->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
115
116
@@ -120,10 +116,10 @@ public function testWarmupOnOptionalWarmerDoNotPassBuildDir()
120
121
117
122
118
123
- ->with('cache_dir', null);
119
+ ->with('cache_dir', 'build_dir');
124
125
$aggregate = new CacheWarmerAggregate([$warmer]);
126
- $aggregate->enableOptionalWarmers();
+ $aggregate->enableOnlyOptionalWarmers();
127
128
129