Drupal 8  8.0.2
LoggingTest Class Reference
Inheritance diagram for LoggingTest:

Public Member Functions

 testEnableLogging ()
 
 testEnableMultiLogging ()
 
 testEnableTargetLogging ()
 
 testEnableTargetLoggingNoTarget ()
 
 testEnableMultiConnectionLogging ()
 
- Public Member Functions inherited from DatabaseTestBase
 ensureSampleDataNull ()
 

Additional Inherited Members

- Static Public Member Functions inherited from DatabaseTestBase
static addSampleData ()
 
- Static Public Attributes inherited from DatabaseTestBase
static $modules = array('database_test')
 
- Protected Member Functions inherited from DatabaseTestBase
 setUp ()
 

Detailed Description

Tests the query logging facility.

Database

Member Function Documentation

testEnableLogging ( )

Tests that we can log the existence of a query.

References db_query(), Database\getLog(), and Database\startLog().

Here is the call graph for this function:

testEnableMultiConnectionLogging ( )

Tests that we can log queries separately on different connections.

References Database\addConnectionInfo(), db_query(), db_set_active(), Database\getConnectionInfo(), Database\getLog(), and Database\startLog().

Here is the call graph for this function:

testEnableMultiLogging ( )

Tests that we can run two logs in parallel.

References db_query(), Database\getLog(), and Database\startLog().

Here is the call graph for this function:

testEnableTargetLogging ( )

Tests logging queries against multiple targets on the same connection.

References Database\addConnectionInfo(), db_query(), Database\getConnectionInfo(), Database\getLog(), and Database\startLog().

Here is the call graph for this function:

testEnableTargetLoggingNoTarget ( )

Tests that logs to separate targets use the same connection properly.

This test is identical to the one above, except that it doesn't create a fake target so the query should fall back to running on the default target.

References db_query(), Database\getLog(), and Database\startLog().

Here is the call graph for this function:


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