Drupal 8  8.0.2
DrupalKernelTest Class Reference
Inheritance diagram for DrupalKernelTest:

Public Member Functions

 testCompileDIC ()
 
 testRepeatedBootWithDifferentEnvironment ()
 
 testPreventChangeOfSitePath ()
 

Protected Member Functions

 setUp ()
 
 prepareConfigDirectories ()
 
 getTestKernel (Request $request, array $modules_enabled=NULL)
 

Detailed Description

Tests DIC compilation to disk.

DrupalKernel

Member Function Documentation

getTestKernel ( Request  $request,
array  $modules_enabled = NULL 
)
protected

Build a kernel for testings.

Because the bootstrap is in DrupalKernel::boot and that involved loading settings from the filesystem we need to go to extra lengths to build a kernel for testing.

Parameters
\Symfony\Component\HttpFoundation\Request$requestA request object to use in booting the kernel.
array$modules_enabledA list of modules to enable on the kernel.
Returns
New kernel for testing.

References DrupalKernel\createFromRequest().

Referenced by DrupalKernelTest\testCompileDIC(), and DrupalKernelTest\testPreventChangeOfSitePath().

Here is the call graph for this function:

Here is the caller graph for this function:

prepareConfigDirectories ( )
protected

{}

References Drupal\setContainer(), and Drupal\unsetContainer().

Here is the call graph for this function:

testCompileDIC ( )

Tests DIC compilation.

References DrupalKernelTest\getTestKernel().

Here is the call graph for this function:

testPreventChangeOfSitePath ( )

Tests setting of site path after kernel boot.

References DrupalKernelTest\getTestKernel().

Here is the call graph for this function:

testRepeatedBootWithDifferentEnvironment ( )

Tests repeated loading of compiled DIC with different environment.

References DrupalKernel\createFromRequest().

Here is the call graph for this function:


The documentation for this class was generated from the following file: