aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/front/controller/visitor/TagControllerTest.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-05-27 13:35:48 +0200
committerArthurHoaro <arthur@hoa.ro>2020-07-23 21:19:21 +0200
commitef00f9d2033f6de11e71bf3a909399cae6f73a9f (patch)
tree96f47312084bab73be34495eed4280110a8ff258 /tests/front/controller/visitor/TagControllerTest.php
parentba43064ddb7771fc97df135a32f9b0d5e373dd36 (diff)
downloadShaarli-ef00f9d2033f6de11e71bf3a909399cae6f73a9f.tar.gz
Shaarli-ef00f9d2033f6de11e71bf3a909399cae6f73a9f.tar.zst
Shaarli-ef00f9d2033f6de11e71bf3a909399cae6f73a9f.zip
Process password change controller through Slim
Diffstat (limited to 'tests/front/controller/visitor/TagControllerTest.php')
-rw-r--r--tests/front/controller/visitor/TagControllerTest.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/front/controller/visitor/TagControllerTest.php b/tests/front/controller/visitor/TagControllerTest.php
index 9a2b1f71..1242a2e9 100644
--- a/tests/front/controller/visitor/TagControllerTest.php
+++ b/tests/front/controller/visitor/TagControllerTest.php
@@ -23,8 +23,6 @@ class TagControllerTest extends TestCase
23 23
24 public function testAddTagWithReferer(): void 24 public function testAddTagWithReferer(): void
25 { 25 {
26 $this->createValidContainerMockSet();
27
28 $this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/']; 26 $this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/'];
29 27
30 $request = $this->createMock(Request::class); 28 $request = $this->createMock(Request::class);
@@ -41,8 +39,6 @@ class TagControllerTest extends TestCase
41 39
42 public function testAddTagWithRefererAndExistingSearch(): void 40 public function testAddTagWithRefererAndExistingSearch(): void
43 { 41 {
44 $this->createValidContainerMockSet();
45
46 $this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/?searchtags=def']; 42 $this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/?searchtags=def'];
47 43
48 $request = $this->createMock(Request::class); 44 $request = $this->createMock(Request::class);
@@ -59,8 +55,6 @@ class TagControllerTest extends TestCase
59 55
60 public function testAddTagWithoutRefererAndExistingSearch(): void 56 public function testAddTagWithoutRefererAndExistingSearch(): void
61 { 57 {
62 $this->createValidContainerMockSet();
63
64 $request = $this->createMock(Request::class); 58 $request = $this->createMock(Request::class);
65 $response = new Response(); 59 $response = new Response();
66 60
@@ -75,8 +69,6 @@ class TagControllerTest extends TestCase
75 69
76 public function testAddTagRemoveLegacyQueryParam(): void 70 public function testAddTagRemoveLegacyQueryParam(): void
77 { 71 {
78 $this->createValidContainerMockSet();
79
80 $this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/?searchtags=def&addtag=abc']; 72 $this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/?searchtags=def&addtag=abc'];
81 73
82 $request = $this->createMock(Request::class); 74 $request = $this->createMock(Request::class);
@@ -93,8 +85,6 @@ class TagControllerTest extends TestCase
93 85
94 public function testAddTagResetPagination(): void 86 public function testAddTagResetPagination(): void
95 { 87 {
96 $this->createValidContainerMockSet();
97
98 $this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/?searchtags=def&page=12']; 88 $this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/?searchtags=def&page=12'];
99 89
100 $request = $this->createMock(Request::class); 90 $request = $this->createMock(Request::class);
@@ -111,8 +101,6 @@ class TagControllerTest extends TestCase
111 101
112 public function testAddTagWithRefererAndEmptySearch(): void 102 public function testAddTagWithRefererAndEmptySearch(): void
113 { 103 {
114 $this->createValidContainerMockSet();
115
116 $this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/?searchtags=']; 104 $this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/?searchtags='];
117 105
118 $request = $this->createMock(Request::class); 106 $request = $this->createMock(Request::class);
@@ -129,8 +117,6 @@ class TagControllerTest extends TestCase
129 117
130 public function testAddTagWithoutNewTagWithReferer(): void 118 public function testAddTagWithoutNewTagWithReferer(): void
131 { 119 {
132 $this->createValidContainerMockSet();
133
134 $this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/?searchtags=def']; 120 $this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/?searchtags=def'];
135 121
136 $request = $this->createMock(Request::class); 122 $request = $this->createMock(Request::class);
@@ -145,8 +131,6 @@ class TagControllerTest extends TestCase
145 131
146 public function testAddTagWithoutNewTagWithoutReferer(): void 132 public function testAddTagWithoutNewTagWithoutReferer(): void
147 { 133 {
148 $this->createValidContainerMockSet();
149
150 $request = $this->createMock(Request::class); 134 $request = $this->createMock(Request::class);
151 $response = new Response(); 135 $response = new Response();
152 136
@@ -159,8 +143,6 @@ class TagControllerTest extends TestCase
159 143
160 public function testRemoveTagWithoutMatchingTag(): void 144 public function testRemoveTagWithoutMatchingTag(): void
161 { 145 {
162 $this->createValidContainerMockSet();
163
164 $this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/?searchtags=def']; 146 $this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/?searchtags=def'];
165 147
166 $request = $this->createMock(Request::class); 148 $request = $this->createMock(Request::class);
@@ -177,8 +159,6 @@ class TagControllerTest extends TestCase
177 159
178 public function testRemoveTagWithoutTagsearch(): void 160 public function testRemoveTagWithoutTagsearch(): void
179 { 161 {
180 $this->createValidContainerMockSet();
181
182 $this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/']; 162 $this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/'];
183 163
184 $request = $this->createMock(Request::class); 164 $request = $this->createMock(Request::class);
@@ -195,8 +175,6 @@ class TagControllerTest extends TestCase
195 175
196 public function testRemoveTagWithoutReferer(): void 176 public function testRemoveTagWithoutReferer(): void
197 { 177 {
198 $this->createValidContainerMockSet();
199
200 $request = $this->createMock(Request::class); 178 $request = $this->createMock(Request::class);
201 $response = new Response(); 179 $response = new Response();
202 180
@@ -211,8 +189,6 @@ class TagControllerTest extends TestCase
211 189
212 public function testRemoveTagWithoutTag(): void 190 public function testRemoveTagWithoutTag(): void
213 { 191 {
214 $this->createValidContainerMockSet();
215
216 $this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/?searchtag=abc']; 192 $this->container->environment = ['HTTP_REFERER' => 'http://shaarli/controller/?searchtag=abc'];
217 193
218 $request = $this->createMock(Request::class); 194 $request = $this->createMock(Request::class);
@@ -227,8 +203,6 @@ class TagControllerTest extends TestCase
227 203
228 public function testRemoveTagWithoutTagWithoutReferer(): void 204 public function testRemoveTagWithoutTagWithoutReferer(): void
229 { 205 {
230 $this->createValidContainerMockSet();
231
232 $request = $this->createMock(Request::class); 206 $request = $this->createMock(Request::class);
233 $response = new Response(); 207 $response = new Response();
234 208