You are here

protected function MenuFirstchildTest::setUp in Menu Firstchild 2.x

Overrides BrowserTestBase::setUp

File

tests/src/Functional/MenuFirstchildTest.php, line 79

Class

MenuFirstchildTest
Test the Member Discounts api.

Namespace

Drupal\Tests\menu_firstchild\Functional

Code

protected function setUp() {
  parent::setUp();
  $this->adminUser = $this
    ->drupalCreateUser([
    'access administration pages',
    'administer blocks',
    'administer menu',
  ]);
  $this->authenticatedUser = $this
    ->drupalCreateUser([]);
  $this
    ->drupalCreateContentType([
    'type' => 'page',
    'name' => 'Basic page',
    'display_submitted' => FALSE,
  ]);

  // Create a few Nodes.
  $this->nodes[] = $this
    ->drupalCreateNode([
    'type' => 'page',
    'status' => TRUE,
    'title' => 'Item 1',
  ]);
  $this->nodes[] = $this
    ->drupalCreateNode([
    'type' => 'page',
    'status' => TRUE,
    'title' => 'Item 1',
  ]);
}