From 93b1fe54fb99efff30eec0d405cc7319fbbc1f95 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Thu, 5 Jan 2017 19:33:06 +0100 Subject: Cleanup: explicit method visibility Signed-off-by: VirtualTam --- tests/plugins/PlugQrcodeTest.php | 67 ---------------------------------------- 1 file changed, 67 deletions(-) delete mode 100644 tests/plugins/PlugQrcodeTest.php (limited to 'tests/plugins/PlugQrcodeTest.php') diff --git a/tests/plugins/PlugQrcodeTest.php b/tests/plugins/PlugQrcodeTest.php deleted file mode 100644 index 86dc7f29..00000000 --- a/tests/plugins/PlugQrcodeTest.php +++ /dev/null @@ -1,67 +0,0 @@ - $str, - 'links' => array( - array( - 'url' => $str, - ) - ) - ); - - $data = hook_qrcode_render_linklist($data); - $link = $data['links'][0]; - // data shouldn't be altered - $this->assertEquals($str, $data['title']); - $this->assertEquals($str, $link['url']); - - // plugin data - $this->assertEquals(1, count($link['link_plugin'])); - $this->assertNotFalse(strpos($link['link_plugin'][0], $str)); - } - - /** - * Test render_footer hook. - */ - function testQrcodeFooter() - { - $str = 'stuff'; - $data = array($str => $str); - $data['_PAGE_'] = Router::$PAGE_LINKLIST; - - $data = hook_qrcode_render_footer($data); - $this->assertEquals($str, $data[$str]); - $this->assertEquals(1, count($data['js_files'])); - - $data = array($str => $str); - $data['_PAGE_'] = $str; - $this->assertEquals($str, $data[$str]); - $this->assertArrayNotHasKey('js_files', $data); - } -} -- cgit v1.2.3