Drupal 8  8.0.2
AlterTest Class Reference
Inheritance diagram for AlterTest:

Public Member Functions

 testSimpleAlter ()
 
 testAlterWithJoin ()
 
 testAlterChangeConditional ()
 
 testAlterChangeFields ()
 
 testAlterExpression ()
 
 testAlterRemoveRange ()
 
 testSimpleAlterSubquery ()
 
- 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 hook_query_alter capabilities of the Select builder.

Database

See Also
database_test_query_alter()

Member Function Documentation

testAlterChangeConditional ( )

Tests that we can alter a query's conditionals.

References db_select().

Here is the call graph for this function:

testAlterChangeFields ( )

Tests that we can alter the fields of a query.

References db_select().

Here is the call graph for this function:

testAlterExpression ( )

Tests that we can alter expressions in the query.

References db_select().

Here is the call graph for this function:

testAlterRemoveRange ( )

Tests that we can remove a range() value from a query.

This also tests hook_query_TAG_alter().

References db_select().

Here is the call graph for this function:

testAlterWithJoin ( )

Tests that we can alter the joins on a query.

References db_select().

Here is the call graph for this function:

testSimpleAlter ( )

Tests that we can do basic alters.

References db_select().

Here is the call graph for this function:

testSimpleAlterSubquery ( )

Tests that we can do basic alters on subqueries.

References db_select().

Here is the call graph for this function:


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