@@ -7,27 +7,27 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | class general_plugin_socialcards_test extends DokuWikiTest { |
| 9 | 9 | |
| 10 | - /** |
|
| 11 | - * Simple test to make sure the plugin.info.txt is in correct format |
|
| 12 | - */ |
|
| 13 | - public function test_plugininfo() { |
|
| 14 | - $file = __DIR__.'/../plugin.info.txt'; |
|
| 15 | - $this->assertFileExists($file); |
|
| 10 | + /** |
|
| 11 | + * Simple test to make sure the plugin.info.txt is in correct format |
|
| 12 | + */ |
|
| 13 | + public function test_plugininfo() { |
|
| 14 | + $file = __DIR__.'/../plugin.info.txt'; |
|
| 15 | + $this->assertFileExists($file); |
|
| 16 | 16 | |
| 17 | - $info = confToHash($file); |
|
| 17 | + $info = confToHash($file); |
|
| 18 | 18 | |
| 19 | - $this->assertArrayHasKey('base', $info); |
|
| 20 | - $this->assertArrayHasKey('author', $info); |
|
| 21 | - $this->assertArrayHasKey('email', $info); |
|
| 22 | - $this->assertArrayHasKey('date', $info); |
|
| 23 | - $this->assertArrayHasKey('name', $info); |
|
| 24 | - $this->assertArrayHasKey('desc', $info); |
|
| 25 | - $this->assertArrayHasKey('url', $info); |
|
| 19 | + $this->assertArrayHasKey('base', $info); |
|
| 20 | + $this->assertArrayHasKey('author', $info); |
|
| 21 | + $this->assertArrayHasKey('email', $info); |
|
| 22 | + $this->assertArrayHasKey('date', $info); |
|
| 23 | + $this->assertArrayHasKey('name', $info); |
|
| 24 | + $this->assertArrayHasKey('desc', $info); |
|
| 25 | + $this->assertArrayHasKey('url', $info); |
|
| 26 | 26 | |
| 27 | - $this->assertEquals('socialcards', $info['base']); |
|
| 28 | - $this->assertRegExp('/^https?:\/\//', $info['url']); |
|
| 29 | - $this->assertTrue(mail_isvalid($info['email'])); |
|
| 30 | - $this->assertRegExp('/^\d\d\d\d-\d\d-\d\d$/', $info['date']); |
|
| 31 | - $this->assertTrue(false !== strtotime($info['date'])); |
|
| 32 | - } |
|
| 27 | + $this->assertEquals('socialcards', $info['base']); |
|
| 28 | + $this->assertRegExp('/^https?:\/\//', $info['url']); |
|
| 29 | + $this->assertTrue(mail_isvalid($info['email'])); |
|
| 30 | + $this->assertRegExp('/^\d\d\d\d-\d\d-\d\d$/', $info['date']); |
|
| 31 | + $this->assertTrue(false !== strtotime($info['date'])); |
|
| 32 | + } |
|
| 33 | 33 | } |