@@ -35,7 +35,7 @@ |
||
| 35 | 35 | public function index($request) |
| 36 | 36 | { |
| 37 | 37 | if (($shortlist = $this->getSessionShortList())) { |
| 38 | - return $this->redirect(Config::inst()->get('ShortList', 'URLSegment') . $shortlist->URL); |
|
| 38 | + return $this->redirect(Config::inst()->get('ShortList', 'URLSegment').$shortlist->URL); |
|
| 39 | 39 | } else { |
| 40 | 40 | /* |
| 41 | 41 | if (!ShortList::isBrowser()) { |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | $this->assertEmpty($list); |
| 166 | 166 | |
| 167 | 167 | $id = $this->fixtureFactory->getId('Page', 'page1'); |
| 168 | - $response = $this->get($url . 'add/?id=' . $id . '&type=Page&s=' . Utilities::getSecurityToken()); |
|
| 168 | + $response = $this->get($url.'add/?id='.$id.'&type=Page&s='.Utilities::getSecurityToken()); |
|
| 169 | 169 | |
| 170 | 170 | $list = ShortListController::getShortListSession(); |
| 171 | 171 | |
@@ -191,14 +191,14 @@ discard block |
||
| 191 | 191 | $this->assertEmpty($list); |
| 192 | 192 | |
| 193 | 193 | $id = $this->fixtureFactory->getId('Page', 'page1'); |
| 194 | - $response = $this->get($url . 'add/?id=' . $id . '&type=Page&s=' . Utilities::getSecurityToken()); |
|
| 194 | + $response = $this->get($url.'add/?id='.$id.'&type=Page&s='.Utilities::getSecurityToken()); |
|
| 195 | 195 | |
| 196 | 196 | $list = ShortListController::getShortListSession(); |
| 197 | 197 | |
| 198 | 198 | $this->assertNotEmpty($list); |
| 199 | 199 | $this->assertEquals($list->ShortListItems()->count(), 1); |
| 200 | 200 | |
| 201 | - $this->get($url . 'remove/?id=' . $id . '&type=Page&s=' . Utilities::getSecurityToken()); |
|
| 201 | + $this->get($url.'remove/?id='.$id.'&type=Page&s='.Utilities::getSecurityToken()); |
|
| 202 | 202 | $this->assertEquals($list->ShortListItems()->count(), 0); |
| 203 | 203 | } |
| 204 | 204 | |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | public function testShortListControllerPagination() |
| 211 | 211 | { |
| 212 | 212 | $url = Config::inst()->get('ShortList', 'URLSegment'); |
| 213 | - $response = $this->get($url . '?page=1'); |
|
| 213 | + $response = $this->get($url.'?page=1'); |
|
| 214 | 214 | |
| 215 | 215 | $this->assertEquals($response->getStatusCode(), 200); |
| 216 | 216 | } |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | $this->assertEmpty($list); |
| 235 | 235 | |
| 236 | 236 | $id = $this->fixtureFactory->getId('Page', 'page1'); |
| 237 | - $response = $this->get($url . 'add/?id=' . $id . '&type=Page&s=' . Utilities::getSecurityToken()); |
|
| 237 | + $response = $this->get($url.'add/?id='.$id.'&type=Page&s='.Utilities::getSecurityToken()); |
|
| 238 | 238 | |
| 239 | 239 | $response = $this->get($url); |
| 240 | 240 | } |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | $this->assertEmpty($list); |
| 253 | 253 | |
| 254 | 254 | $id = $this->fixtureFactory->getId('Page', 'page1'); |
| 255 | - $response = $this->get($url . 'add/?id=' . $id . '&type=Page'); |
|
| 255 | + $response = $this->get($url.'add/?id='.$id.'&type=Page'); |
|
| 256 | 256 | |
| 257 | 257 | $this->assertEquals($response->getStatusCode(), 404); |
| 258 | 258 | } |