66 foreach ( array_keys( $data )
as $fieldName ) {
67 $this->assertEquals( $data[$fieldName], $row->
getField( $fieldName ) );
90 'str' =>
'foobar4645645',
94 'array' =>
array( 42,
'foobar' ),
95 'blob' =>
new stdClass()
105 $mockFields =
array();
108 if (
$name !==
'id' ) {
121 $instances =
array();
124 $instances[] =
array( call_user_func_array(
array( $this,
'getRowInstance' ), $arguments ) );
143 $this->assertTrue( $item->save() );
145 $this->assertTrue( $item->hasIdField() );
146 $this->assertTrue( is_integer( $item->getId() ) );
148 $id = $item->getId();
150 $this->assertTrue( $item->save() );
152 $this->assertEquals( $id, $item->getId() );
156 $this->assertTrue( $item->remove() );
158 $this->assertFalse( $item->hasIdField() );
160 $this->assertTrue( $item->save() );
164 $this->assertTrue( $item->remove() );
166 $this->assertFalse( $item->hasIdField() );
188 if (
$name !==
'id' ) {
203 $originalHas = array_key_exists(
$name, $originalValues );
206 $this->assertEquals( $originalHas, $newHas );
208 if ( $originalHas && $newHas ) {