protected function AdminUITest::setUp in Flag 8.4
Overrides FlagTestBase::setUp
File
- tests/
src/ Functional/ AdminUITest.php, line 72
Class
- AdminUITest
- Tests the Flag admin UI.
Namespace
Drupal\Tests\flag\FunctionalCode
protected function setUp() {
parent::setUp();
$this->entityTypeManager = $this->container
->get('entity_type.manager');
$this
->drupalLogin($this->adminUser);
// Create a node to flag.
$this->node = $this
->drupalCreateNode([
'type' => $this->nodeType,
]);
$this->nodeId = $this->node
->id();
}