Drupal 8  8.0.2
MergeTest Class Reference
Inheritance diagram for MergeTest:

Public Member Functions

 testMergeInsert ()
 
 testMergeUpdate ()
 
 testMergeUpdateExcept ()
 
 testMergeUpdateExplicit ()
 
 testMergeUpdateExpression ()
 
 testMergeInsertWithoutUpdate ()
 
 testMergeUpdateWithoutUpdate ()
 
 testInvalidMerge ()
 
- 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 MERGE query builder.

Database

Member Function Documentation

testInvalidMerge ( )

Tests that an invalid merge query throws an exception.

References db_merge().

Here is the call graph for this function:

testMergeInsert ( )

Confirms that we can merge-insert a record successfully.

References db_merge(), db_query(), and Merge\STATUS_INSERT.

Here is the call graph for this function:

testMergeInsertWithoutUpdate ( )

Tests that we can merge-insert without any update fields.

References db_merge(), and db_query().

Here is the call graph for this function:

testMergeUpdate ( )

Confirms that we can merge-update a record successfully.

References db_merge(), db_query(), and Merge\STATUS_UPDATE.

Here is the call graph for this function:

testMergeUpdateExcept ( )

Confirms that we can merge-update a record successfully.

This test varies from the previous test because it manually defines which fields are inserted, and which fields are updated.

References db_merge(), and db_query().

Here is the call graph for this function:

testMergeUpdateExplicit ( )

Confirms that we can merge-update a record, with alternate replacement.

References db_merge(), and db_query().

Here is the call graph for this function:

testMergeUpdateExpression ( )

Confirms that we can merge-update a record successfully, with expressions.

References db_merge(), and db_query().

Here is the call graph for this function:

testMergeUpdateWithoutUpdate ( )

Confirms that we can merge-update without any update fields.

References db_merge(), and db_query().

Here is the call graph for this function:


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