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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user