WebTestCase('Revoke Assurance Tests'); } function testRevoke() { $this->get('http://' . BASE_URL); $this->assertWantedPattern('/Login/'); $this->clickLink('Normal Login'); // Password Login $this->assertWantedPattern('/Pass Phrase:/'); $this->setField('email', ADMIN_USER); $this->setField('pword', ADMIN_USER_PW); $this->clickSubmit('Login'); $this->assertWantedPattern('/Logout/'); // Okay we are in as an admin user $this->clickLink('+ System Admin'); $this->assertWantedPattern('/Find User/'); $this->clickLink('Find User'); $this->assertWantedPattern('/account.php/'); // Select the user $this->setField('email', NORMAL_USER1); $this->clickSubmit('Next'); $this->assertWantedPattern('/Account Details/'); $this->assertWantedPattern('/Never-Never Land/'); $this->clickLink('Revoke'); $this->clickSubmit('OK'); $this->assertNoUnwantedPattern('/Never-Never Land/'); } } ?>