Drupal 8  8.0.2
InsertDefaultsTest Class Reference
Inheritance diagram for InsertDefaultsTest:

Public Member Functions

 testDefaultInsert ()
 
 testDefaultEmptyInsert ()
 
 testDefaultInsertWithFields ()
 
- 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 Insert query builder with default values.

Database

Member Function Documentation

testDefaultEmptyInsert ( )

Tests that no action will be preformed if no fields are specified.

References db_insert(), and db_query().

Here is the call graph for this function:

testDefaultInsert ( )

Tests that we can run a query that uses default values for everything.

References db_insert(), db_query(), and drupal_get_module_schema().

Here is the call graph for this function:

testDefaultInsertWithFields ( )

Tests that we can insert fields with values and defaults in the same query.

References db_insert(), db_query(), and drupal_get_module_schema().

Here is the call graph for this function:


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