You are here

function RegistrationTestCase::loadRegistration in Entity Registration 8.2

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

Loads a registration from the database, avoiding the cache.

Parameters

int $registration_id: A registrations' unique identifier.

1 call to RegistrationTestCase::loadRegistration()
RegistrationStandardTestCase::testUserCancel in src/RegistrationStandardTestCase.php
Ensure registrations are processed when a user is cancelled.

File

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

Class

RegistrationTestCase
@file Tests for the Registration module

Namespace

Drupal\registration

Code

function loadRegistration($registration_id) {
  $this
    ->resetRegistration();
  return registration_load($registration_id);
}