Skip to content

Commit f314f65

Browse files
Merge branch '6.4' into 7.0
* 6.4: [HttpKernel] Fix CacheWarmerAggregateTest
2 parents 2ab4e38 + d4b65e4 commit f314f65

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/Symfony/Component/HttpKernel/Tests/CacheWarmer/CacheWarmerAggregateTest.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy