Drupal 8  8.0.2
EntityQueryTest Class Reference
Inheritance diagram for EntityQueryTest:

Public Member Functions

 testEntityQuery ()
 
 testSort ()
 
 testTableSort ()
 
 testCount ()
 
 testNestedConditionGroups ()
 
 testMetaData ()
 
 testCaseSensitivity ()
 
 testBaseFieldMultipleColumns ()
 
 testForwardRevisions ()
 
 testInjectionInCondition ()
 

Data Fields

 $greetings
 
 $figures
 

Static Public Attributes

static $modules = array('field_test', 'language')
 
- Static Public Attributes inherited from EntityUnitTestBase
static $modules = ['user', 'system', 'field', 'text', 'filter', 'entity_test']
 

Protected Member Functions

 setUp ()
 
 assertResult ()
 
 assertRevisionResult ($keys, $expected)
 
 assertBundleOrder ($order)
 
- Protected Member Functions inherited from EntityUnitTestBase
 setUp ()
 
 createUser ($values=array(), $permissions=array())
 
 reloadEntity (EntityInterface $entity)
 
 getHooksInfo ()
 
 installModule ($module)
 
 uninstallModule ($module)
 
 refreshServices ()
 
 generateRandomEntityId ($string=FALSE)
 

Protected Attributes

 $queryResults
 
 $factory
 
 $bundles
 
- Protected Attributes inherited from EntityUnitTestBase
 $entityManager
 
 $generatedIds = array()
 
 $state
 

Detailed Description

Tests Entity Query functionality.

Entity

Member Function Documentation

testBaseFieldMultipleColumns ( )

Test base fields with multiple columns.

References Entity\create(), and Drupal\entityQuery().

Here is the call graph for this function:

testCaseSensitivity ( )

Test case sensitive and in-sensitive query conditions.

References Entity\create(), Drupal\entityQuery(), Unicode\strtolower(), Unicode\strtoupper(), and Unicode\substr().

Here is the call graph for this function:

testCount ( )

Test that count queries are separated across entity types.

testEntityQuery ( )

Test basic functionality.

testForwardRevisions ( )

Test forward-revisions.

References Drupal\entityQuery(), and Entity\load().

Here is the call graph for this function:

testInjectionInCondition ( )

Test against SQL inject of condition field. This covers a database driver's EntityQuery class.

testMetaData ( )

Test adding a tag and metadata to the Entity query object.

The tags and metadata should propagate to the SQL query object.

References Drupal\entityQuery().

Here is the call graph for this function:

testNestedConditionGroups ( )

Tests that nested condition groups work as expected.

testSort ( )

Test sort().

Warning: this is complicated.

References Drupal\getContainer().

Here is the call graph for this function:

testTableSort ( )

Test tablesort().

References Drupal\getContainer().

Here is the call graph for this function:


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