You are here

protected function VisibilityTest::setUp in Block Visibility Groups 8

Overrides BlockVisibilityGroupsTestBase::setUp

File

src/Tests/VisibilityTest.php, line 18

Class

VisibilityTest
Tests the block_visibility_groups Visibility Settings.

Namespace

Drupal\block_visibility_groups\Tests

Code

protected function setUp() {
  parent::setUp();

  // Create Basic page and Article node types.
  if ($this->profile != 'standard') {
    $this
      ->drupalCreateContentType([
      'type' => 'page',
      'name' => 'Basic page',
      'display_submitted' => FALSE,
    ]);
    $this
      ->drupalCreateContentType([
      'type' => 'article',
      'name' => 'Article',
    ]);
  }
}