login(); $this->admin_login(); $this->enable_board3_portal_ext(); } public function test_with_announce() { // Create topic as announcement $data = $this->create_topic(2, 'Portal-announce', 'This is an announcement for the portal', array( 'topic_type' => POST_ANNOUNCE, )); if (isset($data)) { // no errors should appear on portal $crawler = self::request('GET', 'app.php/portal'); } } public function test_with_global() { // Create topic as announcement $data = $this->create_topic(2, 'Portal-announce-global', 'This is a global announcement for the portal', array( 'topic_type' => POST_GLOBAL, )); if (isset($data)) { // no errors should appear on portal $crawler = self::request('GET', 'app.php/portal'); } } /** * @depends test_with_announce */ public function test_after_announce() { $this->logout(); $crawler = self::request('GET', 'app.php/portal'); } }