protected function RngSiteTestBase::setUp in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/Tests/RngSiteTestBase.php \Drupal\rng\Tests\RngSiteTestBase::setUp()
- 3.x src/Tests/RngSiteTestBase.php \Drupal\rng\Tests\RngSiteTestBase::setUp()
Sets up a Drupal site for running functional and integration tests.
Installs Drupal with the installation profile specified in \Drupal\simpletest\WebTestBase::$profile into the prefixed database.
Afterwards, installs any additional modules specified in the static \Drupal\simpletest\WebTestBase::$modules property of each class in the class hierarchy.
After installation all caches are flushed and several configuration values are reset to the values of the parent site executing the test, since the default values may be incompatible with the environment in which tests are being executed.
Overrides RngWebTestBase::setUp
2 calls to RngSiteTestBase::setUp()
- RngEventSettingsTest::setUp in src/
Tests/ RngEventSettingsTest.php - Sets up a Drupal site for running functional and integration tests.
- RngRegistrationTypeTest::setUp in src/
Tests/ RngRegistrationTypeTest.php - Sets up a Drupal site for running functional and integration tests.
2 methods override RngSiteTestBase::setUp()
- RngEventSettingsTest::setUp in src/
Tests/ RngEventSettingsTest.php - Sets up a Drupal site for running functional and integration tests.
- RngRegistrationTypeTest::setUp in src/
Tests/ RngRegistrationTypeTest.php - Sets up a Drupal site for running functional and integration tests.
File
- src/
Tests/ RngSiteTestBase.php, line 32
Class
- RngSiteTestBase
- Sets up page and article content types.
Namespace
Drupal\rng\TestsCode
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();
}