You are here

function RngWebTestBase::createEventType in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/Tests/RngWebTestBase.php \Drupal\rng\Tests\RngWebTestBase::createEventType()
  2. 3.x src/Tests/RngWebTestBase.php \Drupal\rng\Tests\RngWebTestBase::createEventType()
6 calls to RngWebTestBase::createEventType()
RngEventAccessTest::setUp in src/Tests/RngEventAccessTest.php
Sets up a Drupal site for running functional and integration tests.
RngEventSettingsTest::testEvent in src/Tests/RngEventSettingsTest.php
Create two bundles of the same entity type, one bundle is an event type.
RngEventTypeMappingFormTest::setUp in src/Tests/RngEventTypeMappingFormTest.php
Sets up a Drupal site for running functional and integration tests.
RngEventTypeTest::testEventType in src/Tests/RngEventTypeTest.php
Test event types in UI.
RngRegistrantRouteTest::setUp in src/Tests/RngRegistrantRouteTest.php
Sets up a Drupal site for running functional and integration tests.

... See full list

File

src/Tests/RngWebTestBase.php, line 40

Class

RngWebTestBase
Sets up page and article content types.

Namespace

Drupal\rng\Tests

Code

function createEventType($entity_type_id, $bundle, $values = []) {
  $event_type = $this
    ->traitCreateEventType($entity_type_id, $bundle, $values);
  \Drupal::service('router.builder')
    ->rebuildIfNeeded();
  return $event_type;
}