14 import(
'lib.pkp.tests.WebTestCase');
21 return PKP_TEST_ENTIRE_DB;
28 $this->open(self::$baseUrl);
31 $this->open(self::$baseUrl .
'/index.php/publicknowledge/gateway/plugin/TestGatewayPlugin');
32 $this->assertTextNotPresent(
'This request is being served by the test gateway plugin.');
34 $this->logIn(
'admin',
'admin');
35 $this->waitForElementPresent($selector=
'link=Website');
36 $this->clickAndWait($selector);
37 $this->click(
'link=Plugins');
40 $this->waitForElementPresent($selector =
'//input[@id=\'select-cell-TestGatewayPlugin-enabled\']');
41 $this->click($selector);
42 $this->waitForElementPresent(
'//div[contains(text(),\'The plugin "Test Gateway Plugin" has been enabled.\')]');
45 $this->open(self::$baseUrl .
'/index.php/publicknowledge/gateway/plugin/TestGatewayPlugin');
46 $this->assertTextPresent(
'This request is being served by the test gateway plugin.');
49 $this->open(self::$baseUrl);