mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 09:05:59 +00:00
MINOR Fixing TranslatableTest to work with new CMS preview feature in master (log out user to avoid redirection before checking URLs)
This commit is contained in:
parent
96e28f6b9b
commit
515b02809d
@ -49,6 +49,9 @@ class TranslatableTest extends FunctionalTest {
|
||||
$translatedPage->write();
|
||||
$translatedPage->publish('Stage', 'Live');
|
||||
|
||||
// Need to log out, otherwise pages redirect to CMS views
|
||||
$this->session()->inst_set('loggedInAs', null);
|
||||
|
||||
$response = $this->get($origPage->URLSegment);
|
||||
$this->assertEquals(200, $response->getStatusCode(), 'Page request without Locale GET param doesnt redirect');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user