diff --git a/e107_tests/tests/unit/e_parse_shortcodeTest.php b/e107_tests/tests/unit/e_parse_shortcodeTest.php index 866f36034..b19373b8c 100644 --- a/e107_tests/tests/unit/e_parse_shortcodeTest.php +++ b/e107_tests/tests/unit/e_parse_shortcodeTest.php @@ -43,7 +43,11 @@ class e_parse_shortcodeTest extends \Codeception\Test\Unit $this->original_e_date = e107::getDate(); $mock_e_date = $this->make('e_date', [ - 'computeLapse' => 'E107_TEST_STUBBED_OUT' + '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); }