You are here

public function ViewModesUtf8EncodedTest::setUp in Acquia Content Hub 8

Overrides ContentHubTestBase::setUp

File

tests/src/Functional/ViewModesUtf8EncodedTest.php, line 53

Class

ViewModesUtf8EncodedTest
Test Acquia Content Hub node reference.

Namespace

Drupal\Tests\acquia_contenthub\Functional

Code

public function setUp() : void {
  parent::setUp();

  // Create the users used for the tests.
  $this->adminUser = $this
    ->drupalCreateUser($this->adminUserPermissions);
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->configureContentHubContentTypes('node', [
    'article',
  ]);
  $this
    ->enableViewModeFor('node', 'article', 'teaser');
}