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:
Ingo Schommer 2011-07-09 15:47:10 +02:00
parent 96e28f6b9b
commit 515b02809d
1 changed files with 3 additions and 0 deletions

View File

@ -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');