protected function ResponsiveImageFieldDisplayTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php \Drupal\responsive_image\Tests\ResponsiveImageFieldDisplayTest::setUp()
Drupal\simpletest\WebTestBase\setUp().
Overrides ImageFieldTestBase::setUp
File
- core/
modules/ responsive_image/ src/ Tests/ ResponsiveImageFieldDisplayTest.php, line 44 - Contains \Drupal\responsive_image\Tests\ResponsiveImageFieldDisplayTest.
Class
- ResponsiveImageFieldDisplayTest
- Tests responsive image display formatter.
Namespace
Drupal\responsive_image\TestsCode
protected function setUp() {
parent::setUp();
// Create user.
$this->adminUser = $this
->drupalCreateUser(array(
'administer responsive images',
'access content',
'access administration pages',
'administer site configuration',
'administer content types',
'administer node display',
'administer nodes',
'create article content',
'edit any article content',
'delete any article content',
'administer image styles',
));
$this
->drupalLogin($this->adminUser);
// Add responsive image style.
$this->responsiveImgStyle = entity_create('responsive_image_style', array(
'id' => 'style_one',
'label' => 'Style One',
'breakpoint_group' => 'responsive_image_test_module',
'fallback_image_style' => 'large',
));
}