From c512dc2fccd9a15f9286de49bfafafcc765af7bb Mon Sep 17 00:00:00 2001 From: Nick Liu Date: Thu, 27 Sep 2018 11:32:06 -0500 Subject: [PATCH] Started but couldn't test e_parse_shortcode --- e107 | 2 +- tests/unit/e_parse_shortcodeTest.php | 173 +++++++++++++++------------ 2 files changed, 95 insertions(+), 80 deletions(-) diff --git a/e107 b/e107 index 7340ea837..c69184848 160000 --- a/e107 +++ b/e107 @@ -1 +1 @@ -Subproject commit 7340ea83775fcd4cd6dbc074f83075f149d7c9b3 +Subproject commit c69184848c9578b8f35ea5dd0ca32e4b26dee64c diff --git a/tests/unit/e_parse_shortcodeTest.php b/tests/unit/e_parse_shortcodeTest.php index 41711f0b0..c101a58ab 100644 --- a/tests/unit/e_parse_shortcodeTest.php +++ b/tests/unit/e_parse_shortcodeTest.php @@ -1,88 +1,103 @@ scParser = $this->make('e_parse_shortcode'); + } catch (Exception $e) { + $this->fail("Couldn't create e_parse_shortcode object"); } + $this->scParser->__construct(); + } - public function testIsRegistered() - { - - } - - public function testIsOverride() - { - - } - - public function testResetScClass() - { - - } - - public function testDoCode() - { - - } - - public function testGetScObject() - { - - } - - public function testParseCodes() - { - - } - - public function testInitShortcodeClass() - { - - } - - public function testRegisterShortcode() - { - - } - - public function testSetScVar() - { - - } - - public function testCallScFunc() - { - - } - - public function testIsScClass() - { - - } - - public function testParse_scbatch() - { - - } - - public function testLoadThemeShortcodes() - { - - } - -*/ +// public function testShortcode_SITELINKS_ALT() +// { +// $output = $this->scParser->parseCodes('{SITELINKS_ALT=/e107_themes/jayya/images/arrow.png+noclick}'); +// var_export($output); +// } + /* + public function testIsBatchOverride() + { } + + public function testIsRegistered() + { + + } + + public function testIsOverride() + { + + } + + public function testResetScClass() + { + + } + + public function testDoCode() + { + + } + + public function testGetScObject() + { + + } + + public function testParseCodes() + { + + } + + public function testInitShortcodeClass() + { + + } + + public function testRegisterShortcode() + { + + } + + public function testSetScVar() + { + + } + + public function testCallScFunc() + { + + } + + public function testIsScClass() + { + + } + + public function testParse_scbatch() + { + + } + + public function testLoadThemeShortcodes() + { + + } + */ +}