protected function ScriptManagerTest::setUp in Script Manager 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ ScriptManagerTest.php, line 36
Class
- ScriptManagerTest
- Test the script manager module.
Namespace
Drupal\Tests\script_manager\FunctionalCode
protected function setUp() {
parent::setUp();
$this->exampleScript = Script::create([
'id' => 'foo',
'label' => 'Foo',
'snippet' => $this
->randomMachineName(),
'position' => ScriptInterface::POSITION_TOP,
]);
$this->exampleScript
->save();
}