1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-08 15:46:44 +02:00

Fixed error in {XURL_ICONS} shortcode. Added a test. Fixed some warnings in the admin/language page.

This commit is contained in:
Cameron
2021-01-25 17:57:34 -08:00
parent ef8844b019
commit 76dbd4469e
5 changed files with 41 additions and 12 deletions

View File

@@ -647,6 +647,33 @@ class e_parse_shortcodeTest extends \Codeception\Test\Unit
}
public function testSocialShortcodes()
{
require_once(e_PLUGIN."social/e_shortcode.php");
try
{
/** @var social_shortcodes $sc */
$sc = $this->make('social_shortcodes');
}
catch (Exception $e)
{
$this->fail($e->getMessage());
}
$sc->__construct();
parse_str('type=facebook,twitter,youtube,flickr,vimeo,google-plus,github,instagram,linkedin&size=3x', $parm);
$result = $sc->sc_xurl_icons($parm);
$this->assertStringContainsString('<span class="e-social-twitter fa-3x"></span>', $result);
$this->assertStringContainsString('<span class="e-social-youtube fa-3x"></span>', $result);
}
public function testUserShortcodes()
{
require_once(e_CORE."shortcodes/batch/user_shortcodes.php");