mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
pluginsTest::testBanner() e_parse cases
See https://github.com/e107inc/e107/issues/3547 for details.
This commit is contained in:
@@ -130,14 +130,23 @@
|
|||||||
|
|
||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
|
|
||||||
|
// XXX: Contradicts https://github.com/e107inc/e107/issues/3547#issuecomment-437163733
|
||||||
$result = $tp->parseTemplate("{BANNER=e107promo}",true);
|
$result = $tp->parseTemplate("{BANNER=e107promo}",true);
|
||||||
$this->assertContains("<img class='e-banner img-responsive img-fluid'",$result);
|
$this->assertContains("<img class='e-banner img-responsive img-fluid'", $result);
|
||||||
|
|
||||||
|
$result = $tp->parseTemplate("{BANNER=e107promo}",false,
|
||||||
|
e107::getScBatch('banner', true));
|
||||||
|
$this->assertContains("<img class='e-banner img-responsive img-fluid'", $result);
|
||||||
|
|
||||||
|
$result = $tp->parseTemplate("{BANNER=e107promo}",false);
|
||||||
|
$this->assertEquals("", $result);
|
||||||
|
|
||||||
$this->pluginUninstall('banner');
|
$this->pluginUninstall('banner');
|
||||||
$result2 = $tp->parseTemplate("{BANNER=e107promo}",true);
|
|
||||||
|
|
||||||
|
$result = $tp->parseTemplate("{BANNER=e107promo}",true);
|
||||||
// The expected value below was the actual observed output when the assertion was written:
|
// The expected value below was the actual observed output when the assertion was written:
|
||||||
$this->assertEquals(' ', $result2, "Banner shortcode is not returning an empty value, despite banner being uninstalled");
|
$this->assertEquals(' ', $result,
|
||||||
|
"Banner shortcode is not returning an empty value, despite banner being uninstalled");
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testChatbox_Menu()
|
public function testChatbox_Menu()
|
||||||
|
Reference in New Issue
Block a user