You are here

function AbstractDrupalBootTest::testNormalRequest in X Autoload 7.5

Tests a simulated regular request.

File

tests/src/DrupalBootTest/AbstractDrupalBootTest.php, line 58

Class

AbstractDrupalBootTest
@runTestsInSeparateProcesses @preserveGlobalState disabled

Namespace

Drupal\xautoload\Tests\DrupalBootTest

Code

function testNormalRequest() {
  $this
    ->prepare();
  $this
    ->prepareAllEnabled();
  $this->exampleDrupal
    ->boot();
  $expectedCalls = $this
    ->getExpectedCallsForNormalRequest();
  $this->callLog
    ->assertCalls($this, $expectedCalls);

  // Now we want all classes to be available.
  foreach ($this->exampleModules
    ->getExampleClasses() as $classes) {
    foreach ((array) $classes as $class) {
      $this
        ->assertClassExists($class);
    }
  }
  $this
    ->unprepare();
}