From 337d8a30bcce8dcd7965df23bf37787712372a15 Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Sat, 30 Jan 2016 18:07:57 +0100 Subject: [PATCH] removed generic test --- lib/plugins/authpdo/_test/general.test.php | 33 ---------------------- 1 file changed, 33 deletions(-) delete mode 100644 lib/plugins/authpdo/_test/general.test.php diff --git a/lib/plugins/authpdo/_test/general.test.php b/lib/plugins/authpdo/_test/general.test.php deleted file mode 100644 index 6c48b6957..000000000 --- a/lib/plugins/authpdo/_test/general.test.php +++ /dev/null @@ -1,33 +0,0 @@ -<?php -/** - * General tests for the authpdo plugin - * - * @group plugin_authpdo - * @group plugins - */ -class general_plugin_authpdo_test extends DokuWikiTest { - - /** - * Simple test to make sure the plugin.info.txt is in correct format - */ - public function test_plugininfo() { - $file = __DIR__.'/../plugin.info.txt'; - $this->assertFileExists($file); - - $info = confToHash($file); - - $this->assertArrayHasKey('base', $info); - $this->assertArrayHasKey('author', $info); - $this->assertArrayHasKey('email', $info); - $this->assertArrayHasKey('date', $info); - $this->assertArrayHasKey('name', $info); - $this->assertArrayHasKey('desc', $info); - $this->assertArrayHasKey('url', $info); - - $this->assertEquals('authpdo', $info['base']); - $this->assertRegExp('/^https?:\/\//', $info['url']); - $this->assertTrue(mail_isvalid($info['email'])); - $this->assertRegExp('/^\d\d\d\d-\d\d-\d\d$/', $info['date']); - $this->assertTrue(false !== strtotime($info['date'])); - } -} -- GitLab