From 053673cb71a45a38a2eb517c4e630656a5626327 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 15 Jan 2017 17:50:16 +0100 Subject: Remove CSS call for addlink toolbar plugin Fixes #724 --- tests/plugins/PluginAddlinkTest.php | 40 ------------------------------------- 1 file changed, 40 deletions(-) (limited to 'tests/plugins') diff --git a/tests/plugins/PluginAddlinkTest.php b/tests/plugins/PluginAddlinkTest.php index b77fe12a..b6239e7f 100644 --- a/tests/plugins/PluginAddlinkTest.php +++ b/tests/plugins/PluginAddlinkTest.php @@ -57,44 +57,4 @@ class PluginAddlinkTest extends PHPUnit_Framework_TestCase $this->assertEquals($str, $data[$str]); $this->assertArrayNotHasKey('fields_toolbar', $data); } - - /** - * Test render_includes hook while logged in. - */ - public function testAddlinkIncludesLoggedIn() - { - $str = 'stuff'; - $data = array($str => $str); - $data['_PAGE_'] = Router::$PAGE_LINKLIST; - $data['_LOGGEDIN_'] = true; - - $data = hook_addlink_toolbar_render_includes($data); - $this->assertEquals($str, $data[$str]); - $this->assertEquals(1, count($data['css_files'])); - - $str = 'stuff'; - $data = array($str => $str); - $data['_PAGE_'] = $str; - $data['_LOGGEDIN_'] = true; - - $data = hook_addlink_toolbar_render_includes($data); - $this->assertEquals($str, $data[$str]); - $this->assertArrayNotHasKey('css_files', $data); - } - - /** - * Test render_includes hook. - * Should not affect css files while logged out. - */ - public function testAddlinkIncludesLoggedOut() - { - $str = 'stuff'; - $data = array($str => $str); - $data['_PAGE_'] = Router::$PAGE_LINKLIST; - $data['_LOGGEDIN_'] = false; - - $data = hook_addlink_toolbar_render_includes($data); - $this->assertEquals($str, $data[$str]); - $this->assertArrayNotHasKey('css_files', $data); - } } -- cgit v1.2.3