public function NivoSliderTestBase::setUp in Nivo Slider 8
Public function setUp.
Overrides WebTestBase::setUp
File
- lib/
Drupal/ nivo_slider/ Tests/ NivoSliderTestBase.php, line 22
Class
- NivoSliderTestBase
- Defines a base class for testing the Nivo Slider module.
Namespace
Drupal\nivo_slider\TestsCode
public function setUp() {
parent::setUp();
// Create an admin user, log in and enable test blocks.
$this->admin_user = $this
->drupalCreateUser([
'administer blocks',
'access administration pages',
'administer nivo slider',
]);
$this
->drupalLogin($this->admin_user);
// Enable our test block.
$this->block = $this
->drupalPlaceBlock('nivo_slider_slider_block');
}