diff --git a/src/Tests/ExtlinkAdminTest.php b/src/Tests/ExtlinkAdminTest.php deleted file mode 100644 index 7fbd0d7..0000000 --- a/src/Tests/ExtlinkAdminTest.php +++ /dev/null @@ -1,25 +0,0 @@ -drupalLogin($this->normalUser); - $this->drupalGet(self::EXTLINK_ADMIN_PATH); - $this->assertText(t('Access denied'), 'Normal users should not be able to access the External Links admin pages', 'External Links'); - - $this->drupalLogin($this->adminUser); - $this->drupalGet(self::EXTLINK_ADMIN_PATH); - $this->assertNoText(t('Access denied'), 'Admin users should be able to access the External Links admin pages', 'External Links'); - } - -} diff --git a/src/Tests/ExtlinkTest.php b/src/Tests/ExtlinkTest.php deleted file mode 100644 index d69f30b..0000000 --- a/src/Tests/ExtlinkTest.php +++ /dev/null @@ -1,20 +0,0 @@ -drupalGet(''); - } - -} diff --git a/src/Tests/ExtlinkTestBase.php b/src/Tests/ExtlinkTestBase.php deleted file mode 100644 index 9524e1a..0000000 --- a/src/Tests/ExtlinkTestBase.php +++ /dev/null @@ -1,75 +0,0 @@ -normalUser = $this->drupalCreateUser($permissions); - - // Create an admin user. - $permissions[] = 'administer site configuration'; - $permissions[] = 'administer permissions'; - $this->adminUser = $this->drupalCreateUser($permissions); - } - - /** - * Get the nodes value. - */ - protected function getNodeFormValues() { - $edit = array( - 'title' => 'node_title ' . $this->randomName(32), - 'body[' . LANGUAGE_NONE . '][0][value]' => 'node_body ' . $this->randomName(256) . ' Google!', - ); - return $edit; - } - - /** - * Test if External Link is present. - */ - protected function assertExternalLinkPresence() { - $elements = $this->xpath('//span[@class="ext"]'); - if (count($elements) > 0) { - $this->pass('There should be an External Link on the form.', 'External Links'); - } - else { - $this->fail('There should be an External Link on the form.', 'External Links'); - } - } - -} diff --git a/tests/src/FunctionalJavascript/ExtlinkAdminTest.php b/tests/src/FunctionalJavascript/ExtlinkAdminTest.php index 6745230..75556cc 100644 --- a/tests/src/FunctionalJavascript/ExtlinkAdminTest.php +++ b/tests/src/FunctionalJavascript/ExtlinkAdminTest.php @@ -1,6 +1,6 @@