Drupal 8  8.0.2
BasicSyntaxTest Class Reference
Inheritance diagram for BasicSyntaxTest:

Public Member Functions

 testConcatLiterals ()
 
 testConcatFields ()
 
 testConcatWsLiterals ()
 
 testConcatWsFields ()
 
 testLikeEscape ()
 
 testLikeBackslash ()
 
 testGetFullQualifiedTableName ()
 
- 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 SQL syntax interpretation.

In order to ensure consistent SQL handling throughout Drupal across multiple kinds of database systems, we test that the database system interprets SQL syntax in an expected fashion.

Database

Member Function Documentation

testConcatFields ( )

Tests string concatenation with field values.

References db_query().

Here is the call graph for this function:

testConcatLiterals ( )

Tests string concatenation.

References db_query().

Here is the call graph for this function:

testConcatWsFields ( )

Tests string concatenation with separator, with field values.

References db_query().

Here is the call graph for this function:

testConcatWsLiterals ( )

Tests string concatenation with separator.

References db_query().

Here is the call graph for this function:

testGetFullQualifiedTableName ( )

Tests ::getFullQualifiedTableName().

References Drupal\database().

Here is the call graph for this function:

testLikeBackslash ( )

Tests a LIKE query containing a backslash.

References db_insert(), db_like(), and db_select().

Here is the call graph for this function:

testLikeEscape ( )

Tests escaping of LIKE wildcards.

References db_insert(), db_like(), and db_select().

Here is the call graph for this function:


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