8000 Remove duplicated test · symfony/symfony@bfddf54 · GitHub
[go: up one dir, main page]

Skip to content

Commit bfddf54

Browse files
committed
Remove duplicated test
1 parent c651987 commit bfddf54

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

src/Symfony/Component/HttpKernel/Tests/EventListener/CacheAttributeListenerTest.php

+2-13
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,6 @@ public function testResponseIsPrivateIfConfigurationIsPublicFalse()
9191
$this->assertTrue($this->response->headers->hasCacheControlDirective('private'));
9292
}
9393

94-
public function testResponseIsPrivateIfSharedMaxAgeSetAndNoStoreIsTrue()
95-
{
96-
$request = $this->createRequest(new Cache(smaxage: 1, noStore: true));
97-
98-
$this->listener->onKernelResponse($this->createEventMock($request, $this->response));
99-
100-
$this->assertFalse($this->response->headers->hasCacheControlDirective('public'));
101-
$this->assertTrue($this->response->headers->hasCacheControlDirective('private'));
102-
$this->assertTrue($this->response->headers->hasCacheControlDirective('no-store'));
103-
}
104-
10594
public function testResponseIsPublicIfConfigurationIsPublicTrueNoStoreFalse()
10695
{
10796
$request = $this->createRequest(new Cache(public: true, noStore: false));
@@ -135,9 +124,9 @@ public function testResponseIsPrivateNoStoreIfConfigurationIsNoStoreTrue()
135124
$this->assertTrue($this->response->headers->hasCacheControlDirective('no-store'));
136125
}
137126

138-
public function testResponseIsPrivateNoStoreIfConfigurationSmaxAgeIsSetAndNoStoreIsTrue()
127+
public function testResponseIsPrivateIfSharedMaxAgeSetAndNoStoreIsTrue()
139128
{
140-
$request = $this->createRequest(new Cache(smaxage: 0, noStore: true));
129+
$request = $this->createRequest(new Cache(smaxage: 1, noStore: true));
141130

142131
$this->listener->onKernelResponse($this->createEventMock($request, $this->response));
143132

0 commit comments

Comments
 (0)
0