mirror of
https://github.com/e107inc/e107.git
synced 2025-03-31 02:32:37 +02:00
pluginsTest::testBanner() e_parse cases
See https://github.com/e107inc/e107/issues/3547 for details.
This commit is contained in:
parent
e9e9f6288e
commit
eec2feb8b3
@ -130,14 +130,23 @@
|
||||
|
||||
$tp = e107::getParser();
|
||||
|
||||
// XXX: Contradicts https://github.com/e107inc/e107/issues/3547#issuecomment-437163733
|
||||
$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');
|
||||
$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:
|
||||
$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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user