Test adding rel attribute to CSS assets group

This commit is contained in:
Flavio Copes
2016-04-07 13:28:55 +02:00
parent 61e6b8f371
commit c47c4bcbf5

View File

@@ -71,6 +71,12 @@ class AssetsTest extends \Codeception\TestCase\Test
'group' => 'head'
], reset($array));
//test addCss() adding asset to a separate group, and with an alternate rel attribute
$this->assets->reset();
$this->assets->addCSS('test.css', ['group' => 'alternate']);
$css = $this->assets->css('alternate', ['rel' => 'alternate']);
$this->assertSame('<link href="/test.css" type="text/css" rel="alternate" />' . PHP_EOL, $css);
//test addJs()
$this->assets->reset();
$this->assets->addJs('test.js');