You are here

public function RngWebTestBase::createEventType in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Tests/RngWebTestBase.php \Drupal\rng\Tests\RngWebTestBase::createEventType()
  2. 8 src/Tests/RngWebTestBase.php \Drupal\rng\Tests\RngWebTestBase::createEventType()
6 calls to RngWebTestBase::createEventType()
RngEventAccessTest::setUp in src/Tests/RngEventAccessTest.php
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
RngEventTypeTest::testEventType in src/Tests/RngEventTypeTest.php
Test event types in UI.
RngRegistrantRouteTest::setUp in src/Tests/RngRegistrantRouteTest.php

... See full list

File

src/Tests/RngWebTestBase.php, line 39

Class

RngWebTestBase
Sets up page and article content types.

Namespace

Drupal\rng\Tests

Code

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