WebTestCase('Load without errors Test'); $c = &SGL_Config::singleton(); $this->conf = $c->getAll(); } function testAdminScreens() { $this->addHeader('User-agent: foo-bar'); $this->get($this->conf['site']['baseUrl'] . '/index.php/user/login/'); $this->setField('frmUsername', 'admin'); $this->setField('frmPassword', 'admin'); $this->clickSubmitByName('submitted'); // navigation $this->get($this->conf['site']['baseUrl'] . '/index.php/navigation/section/'); $this->assertTitle($this->conf['site']['name'] . ' :: Section Manager'); $this->assertNoUnwantedPattern("/errorContent/"); $this->get($this->conf['site']['baseUrl'] . '/index.php/navigation/section/action/add/'); $this->assertTitle($this->conf['site']['name'] . ' :: Section Manager'); $this->assertNoUnwantedPattern("/errorContent/"); $this->get($this->conf['site']['baseUrl'] . '/index.php/navigation/navstyle/action/list/'); $this->assertTitle($this->conf['site']['name'] . ' :: Navigation Style Manager'); $this->assertNoUnwantedPattern("/errorContent/"); } } ?>