You are here

protected function RngSiteTestBase::setUp in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Tests/RngSiteTestBase.php \Drupal\rng\Tests\RngSiteTestBase::setUp()
  2. 8 src/Tests/RngSiteTestBase.php \Drupal\rng\Tests\RngSiteTestBase::setUp()

Overrides RngWebTestBase::setUp

2 calls to RngSiteTestBase::setUp()
RngEventSettingsTest::setUp in src/Tests/RngEventSettingsTest.php
RngRegistrationTypeTest::setUp in src/Tests/RngRegistrationTypeTest.php
2 methods override RngSiteTestBase::setUp()
RngEventSettingsTest::setUp in src/Tests/RngEventSettingsTest.php
RngRegistrationTypeTest::setUp in src/Tests/RngRegistrationTypeTest.php

File

src/Tests/RngSiteTestBase.php, line 32

Class

RngSiteTestBase
Sets up page and article content types.

Namespace

Drupal\rng\Tests

Code

protected function setUp() {
  parent::setUp();
  $this->event_bundle = $this
    ->drupalCreateContentType();
  $this->event_type = $this
    ->createEventType('node', $this->event_bundle
    ->id());
  EventTypeForm::createDefaultRules('node', $this->event_bundle
    ->id());
  $this->registration_type = $this
    ->createRegistrationType();
}