File tree 1 file changed +2
-13
lines changed
src/Symfony/Component/HttpKernel/Tests/EventListener
1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -91,17 +91,6 @@ public function testResponseIsPrivateIfConfigurationIsPublicFalse()
91
91
$ this ->assertTrue ($ this ->response ->headers ->hasCacheControlDirective ('private ' ));
92
92
}
93
93
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
-
105
94
public function testResponseIsPublicIfConfigurationIsPublicTrueNoStoreFalse ()
106
95
{
107
96
$ request = $ this ->createRequest (new Cache (public: true , noStore: false ));
@@ -135,9 +124,9 @@ public function testResponseIsPrivateNoStoreIfConfigurationIsNoStoreTrue()
135
124
$ this ->assertTrue ($ this ->response ->headers ->hasCacheControlDirective ('no-store ' ));
136
125
}
137
126
138
- public function testResponseIsPrivateNoStoreIfConfigurationSmaxAgeIsSetAndNoStoreIsTrue ()
127
+ public function testResponseIsPrivateIfSharedMaxAgeSetAndNoStoreIsTrue ()
139
128
{
140
- $ request = $ this ->createRequest (new Cache (smaxage: 0 , noStore: true ));
129
+ $ request = $ this ->createRequest (new Cache (smaxage: 1 , noStore: true ));
141
130
142
131
$ this ->listener ->onKernelResponse ($ this ->createEventMock ($ request , $ this ->response ));
143
132
You can’t perform that action at this time.
0 commit comments