File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
src/Symfony/Component/HttpKernel/Tests/EventListener Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments