1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-22 06:03:27 +02:00

PHP8 fixes. Tests added for online shortcodes, page/e_shortcode.php

This commit is contained in:
Cameron
2021-01-08 11:46:30 -08:00
parent e33b403093
commit eec9a163cb
5 changed files with 149 additions and 17 deletions

View File

@@ -146,13 +146,15 @@ while($row = $sql->fetch())
public function testParseTemplateWithCoreAddonShortcodes()
{
e107::getPlugin()->uninstall('online');
e107::getScParser()->__construct();
$sc = e107::getScParser();
$sc->__construct();
$sc->clearRegistered();
$result = $this->tp->parseTemplate('{ONLINE_MEMBER_PAGE}', false);
$this->assertEmpty($result);
$result = $this->tp->parseTemplate('{ONLINE_MEMBER_PAGE}', true);
$this->assertEmpty($result);
$this->assertEmpty($result, "{ONLINE_MEMBER_PAGE} wasn't empty: ".$result);
$shortcodeObject = e107::getScBatch('online', true);