Drupal 8  8.0.2
InsertTest Class Reference
Inheritance diagram for InsertTest:

Public Member Functions

 testSimpleInsert ()
 
 testMultiInsert ()
 
 testRepeatedInsert ()
 
 testInsertFieldOnlyDefinition ()
 
 testInsertLastInsertID ()
 
 testInsertSelectFields ()
 
 testInsertSelectAll ()
 
 testSpecialColumnInsert ()
 
- 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 builder.

Database

Member Function Documentation

testInsertFieldOnlyDefinition ( )

Tests that we can specify fields without values and specify values later.

References db_insert(), and db_query().

Here is the call graph for this function:

testInsertLastInsertID ( )

Tests that inserts return the proper auto-increment ID.

References db_insert().

Here is the call graph for this function:

testInsertSelectAll ( )

Tests that the INSERT INTO ... SELECT * ... syntax works.

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

Here is the call graph for this function:

testInsertSelectFields ( )

Tests that the INSERT INTO ... SELECT (fields) ... syntax works.

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

Here is the call graph for this function:

testMultiInsert ( )

Tests that we can insert multiple records in one query object.

References db_insert(), and db_query().

Here is the call graph for this function:

testRepeatedInsert ( )

Tests that an insert object can be reused with new data after it executes.

References db_insert(), and db_query().

Here is the call graph for this function:

testSimpleInsert ( )

Tests very basic insert functionality.

References db_insert(), and db_query().

Here is the call graph for this function:

testSpecialColumnInsert ( )

Tests that we can INSERT INTO a special named column.

References db_insert(), and db_query().

Here is the call graph for this function:


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