Drupal 8  8.0.2
TaggingTest Class Reference
Inheritance diagram for TaggingTest:

Public Member Functions

 testHasTag ()
 
 testHasAllTags ()
 
 testHasAnyTag ()
 
 testExtenderHasTag ()
 
 testExtenderHasAllTags ()
 
 testExtenderHasAnyTag ()
 
 testMetaData ()
 
- 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 tagging capabilities of the Select builder.

Tags are a way to flag queries for alter hooks so they know what type of query it is, such as "node_access".

Database

Member Function Documentation

testExtenderHasAllTags ( )

Tests extended query tagging "has all of these tags" functionality.

References db_select().

Here is the call graph for this function:

testExtenderHasAnyTag ( )

Tests extended query tagging "has at least one of these tags" functionality.

References db_select().

Here is the call graph for this function:

testExtenderHasTag ( )

Confirms that an extended query has a tag added to it.

References db_select().

Here is the call graph for this function:

testHasAllTags ( )

Tests query tagging "has all of these tags" functionality.

References db_select().

Here is the call graph for this function:

testHasAnyTag ( )

Tests query tagging "has at least one of these tags" functionality.

References db_select().

Here is the call graph for this function:

testHasTag ( )

Confirms that a query has a tag added to it.

References db_select().

Here is the call graph for this function:

testMetaData ( )

Tests that we can attach metadata to a query object.

This is how we pass additional context to alter hooks.

References db_select().

Here is the call graph for this function:


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