$t->is($e->getMessage(), "The row '' in table APPLICATION doesn't exist!", "update() This row doesn't exist!"); } //update with $fields $newTitle = 'new title'; $Fields['APP_UID'] = $appUid; $Fields['APP_TITLE'] = $newTitle; $Fields['APP_PARENT'] = rand(1000, 5000); $Fields['APP_INIT_DATE'] = 'now'; try { $obj = new Application(); $res = $obj->update($Fields); //#25 $t->is($res, 1, "update() update 1 row"); $Fields = $obj->Load($appUid); //#26 $t->is($obj->getAppUid(), $appUid, "update() APP_UID = " . $appUid); //#27 $t->is($obj->getAppTitle(), $newTitle, "update() getAppTitle"); //#28 $t->is($Fields['APP_TITLE'], $newTitle, "update() APP_TITLE= " . $newTitle); //#29 $t->is($Fields['APP_INIT_DATE'], date('Y-m-d H:i:s'), "update() APP_INIT_DATE= " . date('Y-m-d H:i:s')); } catch (Exception $e) { //#14 // $t->isa_ok( $e, 'PropelException', 'update() return error ' . $e->getMessage() ); $t->isa_ok($e, 'Exception', 'update() return error ' . $e->getMessage()); } //remove with empty try { $obj = new Application(); $res = $obj->remove(NULL);