setFontAwesome(5); try { $this->scParser = $this->make('e_parse_shortcode'); } catch (Exception $e) { $this->fail("Couldn't create e_parse_shortcode object"); } $this->scParser->__construct(); $this->original_e_render = e107::getRender(); $mock_e_render = $this->make('e_render'); e107::setRegistry('core/e107/singleton/e_render', $mock_e_render); $this->original_e_date = e107::getDate(); $mock_e_date = $this->make('e_date', [ 'computeLapse' => 'E107_TEST_STUBBED_OUT', 'convert_date' => function($datestamp, $mask = '') { return $this->original_e_date->convert_date(0, $mask); }, ]); e107::setRegistry('core/e107/singleton/e_date', $mock_e_date); } public function _after() { e107::setRegistry('core/e107/singleton/e_render', $this->original_e_render); e107::setRegistry('core/e107/singleton/e_date', $this->original_e_date); } // 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 testParseCodesWithArray() { $text = '