You are here

protected function ScheduledUpdatesTestBase::setupContentTypes in Scheduled Updates 8

1 call to ScheduledUpdatesTestBase::setupContentTypes()
ScheduledUpdatesTestBase::setUp in tests/src/FunctionalJavascript/ScheduledUpdatesTestBase.php
Sets the test up.

File

tests/src/FunctionalJavascript/ScheduledUpdatesTestBase.php, line 199
Contains \Drupal\Tests\scheduled_updates\ScheduledUpdatesTestBase.

Class

ScheduledUpdatesTestBase
Define base class for Scheduled Updates Tests

Namespace

Drupal\Tests\scheduled_updates\FunctionalJavascript

Code

protected function setupContentTypes() {
  if ($this->profile != 'standard') {
    $this
      ->drupalCreateContentType([
      'type' => 'article',
      'name' => 'Article',
    ]);
    $this
      ->drupalCreateContentType([
      'type' => 'page',
      'name' => 'Basic Page',
    ]);
  }
}