You are here

protected function PerContentTypeSettingsTest::setUp in Simplify 8

Overrides BrowserTestBase::setUp

File

src/Tests/PerContentTypeSettingsTest.php, line 44

Class

PerContentTypeSettingsTest
Test simplify per content-type settings.

Namespace

Drupal\simplify\Tests

Code

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

  // Create an admin user.
  $admin_user = $this
    ->drupalCreateUser([], NULL, TRUE);
  $this
    ->drupalLogin($admin_user);

  // Create a content type.
  $this
    ->drupalCreateContentType([
    'type' => 'testing_type',
    'name' => 'Testing type',
  ]);

  // Create another content type.
  $this
    ->drupalCreateContentType([
    'type' => 'another_type',
    'name' => 'Another type',
  ]);
}