From bd0551b22076b82a6d49e9f7a2b2e0c90a1b2326 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Fri, 05 Feb 2016 07:25:27 -0500 Subject: [PATCH] Secure also downloads of addressbook exports, managesieve script exports and Enigma keys exports --- plugins/emoticons/tests/Emoticons.php | 41 ----------------------------------------- 1 files changed, 0 insertions(+), 41 deletions(-) diff --git a/plugins/emoticons/tests/Emoticons.php b/plugins/emoticons/tests/Emoticons.php index 14c7fd0..bc21ceb 100644 --- a/plugins/emoticons/tests/Emoticons.php +++ b/plugins/emoticons/tests/Emoticons.php @@ -19,45 +19,4 @@ $this->assertInstanceOf('emoticons', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); } - - /** - * replace() method tests - */ - function test_replace() - { - $rcube = rcube::get_instance(); - $plugin = new emoticons($rcube->api); - - $map = array( - ':D' => array('smiley-laughing.gif', ':D' ), - ':-D' => array('smiley-laughing.gif', ':-D' ), - ':(' => array('smiley-frown.gif', ':(' ), - ':-(' => array('smiley-frown.gif', ':-(' ), - '8)' => array('smiley-cool.gif', '8)' ), - '8-)' => array('smiley-cool.gif', '8-)' ), - ':O' => array('smiley-surprised.gif', ':O' ), - ':-O' => array('smiley-surprised.gif', ':-O' ), - ':P' => array('smiley-tongue-out.gif', ':P' ), - ':-P' => array('smiley-tongue-out.gif', ':-P' ), - ':@' => array('smiley-yell.gif', ':@' ), - ':-@' => array('smiley-yell.gif', ':-@' ), - 'O:)' => array('smiley-innocent.gif', 'O:)' ), - 'O:-)' => array('smiley-innocent.gif', 'O:-)' ), - ':)' => array('smiley-smile.gif', ':)' ), - ':-)' => array('smiley-smile.gif', ':-)' ), - ':$' => array('smiley-embarassed.gif', ':$' ), - ':-$' => array('smiley-embarassed.gif', ':-$' ), - ':*' => array('smiley-kiss.gif', ':*' ), - ':-*' => array('smiley-kiss.gif', ':-*' ), - ':S' => array('smiley-undecided.gif', ':S' ), - ':-S' => array('smiley-undecided.gif', ':-S' ), - ); - - foreach ($map as $body => $expected) { - $args = array('type' => 'plain', 'body' => $body); - $args = $plugin->replace($args); - $this->assertRegExp('/' . preg_quote($expected[0], '/') . '/', $args['body']); - $this->assertRegExp('/title="' . preg_quote($expected[1], '/') . '"/', $args['body']); - } - } } -- Gitblit v1.9.1