function AttachedAssetsTest::testDefault in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/system/src/Tests/Common/AttachedAssetsTest.php \Drupal\system\Tests\Common\AttachedAssetsTest::testDefault()
Tests that default CSS and JavaScript is empty.
File
- core/
modules/ system/ src/ Tests/ Common/ AttachedAssetsTest.php, line 64 - Contains \Drupal\system\Tests\Common\AttachedAssetsTest.
Class
- AttachedAssetsTest
- Tests #attached assets: attached asset libraries and JavaScript settings.
Namespace
Drupal\system\Tests\CommonCode
function testDefault() {
$assets = new AttachedAssets();
$this
->assertEqual(array(), $this->assetResolver
->getCssAssets($assets, FALSE), 'Default CSS is empty.');
list($js_assets_header, $js_assets_footer) = $this->assetResolver
->getJsAssets($assets, FALSE);
$this
->assertEqual(array(), $js_assets_header, 'Default header JavaScript is empty.');
$this
->assertEqual(array(), $js_assets_footer, 'Default footer JavaScript is empty.');
}