[ticket/508] Only execute portal once when accessed via domain only

B3P-508
This commit is contained in:
Marc Alexander
2015-03-15 15:26:32 +01:00
parent c0430bb20e
commit eb24ba1425
3 changed files with 26 additions and 0 deletions

View File

@@ -91,4 +91,13 @@ class main_test extends \board3\portal\tests\testframework\database_test_case
$this->assertNull($this->controller_main->handle(array('left' => 1)));
$this->template->assert_same(true, 'S_PORTAL_ALL');
}
public function test_display_all_pages_twice()
{
$this->assertNull($this->controller_main->handle(array('left' => 1)));
$this->template->assert_same(true, 'S_PORTAL_ALL');
$this->template->delete_var('S_PORTAL_ALL');
$this->assertNull($this->controller_main->handle(array('left' => 1)));
$this->template->assert_same(null, 'S_PORTAL_ALL');
}
}