Drupal 8  8.0.2
UpdateTest Class Reference
Inheritance diagram for UpdateTest:

Public Member Functions

 testSimpleUpdate ()
 
 testSimpleNullUpdate ()
 
 testMultiUpdate ()
 
 testMultiGTUpdate ()
 
 testWhereUpdate ()
 
 testWhereAndConditionUpdate ()
 
 testExpressionUpdate ()
 
 testUpdateAffectedRows ()
 
 testPrimaryKeyUpdate ()
 
 testSpecialColumnUpdate ()
 
- 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 update query builder.

Database

Member Function Documentation

testExpressionUpdate ( )

Tests updating with expressions.

References db_query(), and db_update().

Here is the call graph for this function:

testMultiGTUpdate ( )

Confirms that we can update multiple records with a non-equality condition.

References db_query(), and db_update().

Here is the call graph for this function:

testMultiUpdate ( )

Confirms that we can update multiple records successfully.

References db_query(), and db_update().

Here is the call graph for this function:

testPrimaryKeyUpdate ( )

Confirm that we can update the primary key of a record successfully.

References db_query(), and db_update().

Here is the call graph for this function:

testSimpleNullUpdate ( )

Confirms updating to NULL.

References db_query(), db_update(), and DatabaseTestBase\ensureSampleDataNull().

Here is the call graph for this function:

testSimpleUpdate ( )

Confirms that we can update a single record successfully.

References db_query(), and db_update().

Here is the call graph for this function:

testSpecialColumnUpdate ( )

Confirm that we can update values in a column with special name.

References db_query(), and db_update().

Here is the call graph for this function:

testUpdateAffectedRows ( )

Tests return value on update.

References db_update().

Here is the call graph for this function:

testWhereAndConditionUpdate ( )

Confirms that we can stack condition and where calls.

References db_query(), and db_update().

Here is the call graph for this function:

testWhereUpdate ( )

Confirms that we can update multiple records with a where call.

References db_query(), and db_update().

Here is the call graph for this function:


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