aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/front/controller/visitor/ShaarliPublicControllerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/front/controller/visitor/ShaarliPublicControllerTest.php')
-rw-r--r--tests/front/controller/visitor/ShaarliPublicControllerTest.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/front/controller/visitor/ShaarliPublicControllerTest.php b/tests/front/controller/visitor/ShaarliPublicControllerTest.php
index e2e88da3..1f7d57ad 100644
--- a/tests/front/controller/visitor/ShaarliPublicControllerTest.php
+++ b/tests/front/controller/visitor/ShaarliPublicControllerTest.php
@@ -67,8 +67,6 @@ class ShaarliControllerTest extends TestCase
67 67
68 public function testAssignView(): void 68 public function testAssignView(): void
69 { 69 {
70 $this->createValidContainerMockSet();
71
72 $this->assignTemplateVars($this->assignedValues); 70 $this->assignTemplateVars($this->assignedValues);
73 71
74 $self = $this->controller->assignView('variableName', 'variableValue'); 72 $self = $this->controller->assignView('variableName', 'variableValue');
@@ -79,8 +77,6 @@ class ShaarliControllerTest extends TestCase
79 77
80 public function testRender(): void 78 public function testRender(): void
81 { 79 {
82 $this->createValidContainerMockSet();
83
84 $this->assignTemplateVars($this->assignedValues); 80 $this->assignTemplateVars($this->assignedValues);
85 81
86 $this->container->bookmarkService 82 $this->container->bookmarkService
@@ -120,8 +116,6 @@ class ShaarliControllerTest extends TestCase
120 */ 116 */
121 public function testRedirectFromRefererDefault(): void 117 public function testRedirectFromRefererDefault(): void
122 { 118 {
123 $this->createValidContainerMockSet();
124
125 $this->container->environment['HTTP_REFERER'] = 'http://shaarli.tld/subfolder/controller?query=param&other=2'; 119 $this->container->environment['HTTP_REFERER'] = 'http://shaarli.tld/subfolder/controller?query=param&other=2';
126 120
127 $response = new Response(); 121 $response = new Response();
@@ -137,8 +131,6 @@ class ShaarliControllerTest extends TestCase
137 */ 131 */
138 public function testRedirectFromRefererWithUnmatchedLoopTerm(): void 132 public function testRedirectFromRefererWithUnmatchedLoopTerm(): void
139 { 133 {
140 $this->createValidContainerMockSet();
141
142 $this->container->environment['HTTP_REFERER'] = 'http://shaarli.tld/subfolder/controller?query=param&other=2'; 134 $this->container->environment['HTTP_REFERER'] = 'http://shaarli.tld/subfolder/controller?query=param&other=2';
143 135
144 $response = new Response(); 136 $response = new Response();
@@ -154,8 +146,6 @@ class ShaarliControllerTest extends TestCase
154 */ 146 */
155 public function testRedirectFromRefererWithMatchingLoopTermInPath(): void 147 public function testRedirectFromRefererWithMatchingLoopTermInPath(): void
156 { 148 {
157 $this->createValidContainerMockSet();
158
159 $this->container->environment['HTTP_REFERER'] = 'http://shaarli.tld/subfolder/controller?query=param&other=2'; 149 $this->container->environment['HTTP_REFERER'] = 'http://shaarli.tld/subfolder/controller?query=param&other=2';
160 150
161 $response = new Response(); 151 $response = new Response();
@@ -171,8 +161,6 @@ class ShaarliControllerTest extends TestCase
171 */ 161 */
172 public function testRedirectFromRefererWithMatchingLoopTermInQueryParam(): void 162 public function testRedirectFromRefererWithMatchingLoopTermInQueryParam(): void
173 { 163 {
174 $this->createValidContainerMockSet();
175
176 $this->container->environment['HTTP_REFERER'] = 'http://shaarli.tld/subfolder/controller?query=param&other=2'; 164 $this->container->environment['HTTP_REFERER'] = 'http://shaarli.tld/subfolder/controller?query=param&other=2';
177 165
178 $response = new Response(); 166 $response = new Response();
@@ -189,8 +177,6 @@ class ShaarliControllerTest extends TestCase
189 */ 177 */
190 public function testRedirectFromRefererWithMatchingLoopTermInQueryValue(): void 178 public function testRedirectFromRefererWithMatchingLoopTermInQueryValue(): void
191 { 179 {
192 $this->createValidContainerMockSet();
193
194 $this->container->environment['HTTP_REFERER'] = 'http://shaarli.tld/subfolder/controller?query=param&other=2'; 180 $this->container->environment['HTTP_REFERER'] = 'http://shaarli.tld/subfolder/controller?query=param&other=2';
195 181
196 $response = new Response(); 182 $response = new Response();
@@ -207,8 +193,6 @@ class ShaarliControllerTest extends TestCase
207 */ 193 */
208 public function testRedirectFromRefererWithLoopTermInDomain(): void 194 public function testRedirectFromRefererWithLoopTermInDomain(): void
209 { 195 {
210 $this->createValidContainerMockSet();
211
212 $this->container->environment['HTTP_REFERER'] = 'http://shaarli.tld/subfolder/controller?query=param&other=2'; 196 $this->container->environment['HTTP_REFERER'] = 'http://shaarli.tld/subfolder/controller?query=param&other=2';
213 197
214 $response = new Response(); 198 $response = new Response();
@@ -225,8 +209,6 @@ class ShaarliControllerTest extends TestCase
225 */ 209 */
226 public function testRedirectFromRefererWithMatchingClearedParam(): void 210 public function testRedirectFromRefererWithMatchingClearedParam(): void
227 { 211 {
228 $this->createValidContainerMockSet();
229
230 $this->container->environment['HTTP_REFERER'] = 'http://shaarli.tld/subfolder/controller?query=param&other=2'; 212 $this->container->environment['HTTP_REFERER'] = 'http://shaarli.tld/subfolder/controller?query=param&other=2';
231 213
232 $response = new Response(); 214 $response = new Response();