Drupal 8  8.0.2
FetchTest Class Reference
Inheritance diagram for FetchTest:

Public Member Functions

 testQueryFetchDefault ()
 
 testQueryFetchObject ()
 
 testQueryFetchArray ()
 
 testQueryFetchClass ()
 
 testQueryFetchNum ()
 
 testQueryFetchBoth ()
 
 testQueryFetchCol ()
 
 testRowCount ()
 
- 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 Database system's various fetch capabilities.

We get timeout errors if we try to run too many tests at once.

Database

Member Function Documentation

testQueryFetchArray ( )

Confirms that we can fetch a record to an associative array explicitly.

References db_query().

Here is the call graph for this function:

testQueryFetchBoth ( )

Confirms that we can fetch a record into a doubly-keyed array explicitly.

References db_query().

Here is the call graph for this function:

testQueryFetchClass ( )

Confirms that we can fetch a record into a new instance of a custom class.

See Also

References db_query().

Here is the call graph for this function:

testQueryFetchCol ( )

Confirms that we can fetch an entire column of a result set at once.

References db_query().

Here is the call graph for this function:

testQueryFetchDefault ( )

Confirms that we can fetch a record properly in default object mode.

References db_query().

Here is the call graph for this function:

testQueryFetchNum ( )

Confirms that we can fetch a record into an indexed array explicitly.

References db_query().

Here is the call graph for this function:

testQueryFetchObject ( )

Confirms that we can fetch a record to an object explicitly.

References db_query().

Here is the call graph for this function:

testRowCount ( )

Tests that rowCount() throws exception on SELECT query.

References db_query().

Here is the call graph for this function:


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