protected function CssCollectionRendererUnitTest::setUp in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php \Drupal\Tests\Core\Asset\CssCollectionRendererUnitTest::setUp()
Overrides UnitTestCase::setUp
File
- core/
tests/ Drupal/ Tests/ Core/ Asset/ CssCollectionRendererUnitTest.php, line 66 - Contains \Drupal\Tests\Core\Asset\CssCollectionRendererUnitTest.
Class
- CssCollectionRendererUnitTest
- Tests the CSS asset collection renderer.
Namespace
Drupal\Tests\Core\AssetCode
protected function setUp() {
parent::setUp();
$this->state = $this
->getMock('Drupal\\Core\\State\\StateInterface');
$this->renderer = new CssCollectionRenderer($this->state);
$this->fileCssGroup = array(
'group' => -100,
'type' => 'file',
'media' => 'all',
'preprocess' => TRUE,
'browsers' => array(
'IE' => TRUE,
'!IE' => TRUE,
),
'items' => array(
0 => array(
'group' => -100,
'type' => 'file',
'weight' => 0.012,
'media' => 'all',
'preprocess' => TRUE,
'data' => 'tests/Drupal/Tests/Core/Asset/foo.css',
'browsers' => array(
'IE' => TRUE,
'!IE' => TRUE,
),
'basename' => 'foo.css',
),
1 => array(
'group' => -100,
'type' => 'file',
'weight' => 0.013,
'media' => 'all',
'preprocess' => TRUE,
'data' => 'tests/Drupal/Tests/Core/Asset/bar.css',
'browsers' => array(
'IE' => TRUE,
'!IE' => TRUE,
),
'basename' => 'bar.css',
),
),
);
}