diff options
Diffstat (limited to 'tests/front/controller/admin/PostBookmarkControllerTest.php')
-rw-r--r-- | tests/front/controller/admin/PostBookmarkControllerTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/front/controller/admin/PostBookmarkControllerTest.php b/tests/front/controller/admin/PostBookmarkControllerTest.php index 69673bd2..8dcd1b50 100644 --- a/tests/front/controller/admin/PostBookmarkControllerTest.php +++ b/tests/front/controller/admin/PostBookmarkControllerTest.php | |||
@@ -395,7 +395,7 @@ class PostBookmarkControllerTest extends TestCase | |||
395 | 'lf_description' => 'Provided description.', | 395 | 'lf_description' => 'Provided description.', |
396 | 'lf_tags' => 'abc def', | 396 | 'lf_tags' => 'abc def', |
397 | 'lf_private' => '1', | 397 | 'lf_private' => '1', |
398 | 'returnurl' => 'http://shaarli.tld/subfolder/add-shaare' | 398 | 'returnurl' => 'http://shaarli.tld/subfolder/admin/add-shaare' |
399 | ]; | 399 | ]; |
400 | 400 | ||
401 | $request = $this->createMock(Request::class); | 401 | $request = $this->createMock(Request::class); |
@@ -459,7 +459,7 @@ class PostBookmarkControllerTest extends TestCase | |||
459 | $result = $this->controller->save($request, $response); | 459 | $result = $this->controller->save($request, $response); |
460 | 460 | ||
461 | static::assertSame(302, $result->getStatusCode()); | 461 | static::assertSame(302, $result->getStatusCode()); |
462 | static::assertRegExp('@/subfolder/#\w{6}@', $result->getHeader('location')[0]); | 462 | static::assertRegExp('@/subfolder/#[\w\-]{6}@', $result->getHeader('location')[0]); |
463 | } | 463 | } |
464 | 464 | ||
465 | 465 | ||
@@ -545,7 +545,7 @@ class PostBookmarkControllerTest extends TestCase | |||
545 | $result = $this->controller->save($request, $response); | 545 | $result = $this->controller->save($request, $response); |
546 | 546 | ||
547 | static::assertSame(302, $result->getStatusCode()); | 547 | static::assertSame(302, $result->getStatusCode()); |
548 | static::assertRegExp('@/subfolder/\?page=2#\w{6}@', $result->getHeader('location')[0]); | 548 | static::assertRegExp('@/subfolder/\?page=2#[\w\-]{6}@', $result->getHeader('location')[0]); |
549 | } | 549 | } |
550 | 550 | ||
551 | /** | 551 | /** |