You are here

function RegistrationTestCase::resetRegistration in Entity Registration 8.2

Same name in this branch
  1. 8.2 tests/registration.test \RegistrationTestCase::resetRegistration()
  2. 8.2 src/RegistrationTestCase.php \Drupal\registration\RegistrationTestCase::resetRegistration()

Reset session cache of registration entities.

4 calls to RegistrationTestCase::resetRegistration()
RegistrationStandardTestCase::testRegistrationForm in src/RegistrationStandardTestCase.php
Tests for the registration add/edit form.
RegistrationStandardTestCase::testRegistrationHostDelete in src/RegistrationStandardTestCase.php
RegistrationStandardTestCase::testRegistrationType in src/RegistrationStandardTestCase.php
Tests if registration type is set.
RegistrationTestCase::loadRegistration in src/RegistrationTestCase.php
Loads a registration from the database, avoiding the cache.

File

src/RegistrationTestCase.php, line 115
Tests for the Registration module

Class

RegistrationTestCase
@file Tests for the Registration module

Namespace

Drupal\registration

Code

function resetRegistration() {
  entity_get_controller('registration')
    ->resetCache();
}