Changeset 4286
- Timestamp:
- 04/22/08 13:47:41 (15 months ago)
- Location:
- branches/0.11
- Files:
-
- 2 modified
-
lib/Doctrine/Connection/UnitOfWork.php (modified) (2 diffs)
-
tests/RecordTestCase.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.11/lib/Doctrine/Connection/UnitOfWork.php
r4265 r4286 169 169 $deletions = array(); 170 170 $this->_collectDeletions($record, $deletions); 171 $this->_executeDeletions($deletions);171 return $this->_executeDeletions($deletions); 172 172 } 173 173 … … 272 272 } 273 273 274 return true; 274 275 } catch (Exception $e) { 275 276 $this->conn->rollback(); -
branches/0.11/tests/RecordTestCase.php
r4265 r4286 728 728 //$this->assertEqual(count($emails),0); 729 729 } catch (Exception $e) { 730 $this->fail( );730 $this->fail($e->getMessage()); 731 731 } 732 732 } … … 975 975 $this->assertEqual($user->name, 'jon wage changed2'); 976 976 } 977 978 public function testDeleteReturnBooleanAndThrowsException() 979 { 980 $user = new User(); 981 $user->name = 'jonnnn wage'; 982 $user->loginname = 'jwage3'; 983 $user->save(); 984 985 $this->assertTrue($user->delete()); 986 try { 987 $user->delete(); 988 $this->fail(); 989 } catch (Exception $e) { 990 $this->pass(); 991 } 992 } 977 993 }