1
0
mirror of synced 2024-12-14 07:06:04 +03:00
This commit is contained in:
zYne 2007-05-27 09:37:16 +00:00
parent f8893f27c2
commit 514d67ef05
2 changed files with 7 additions and 8 deletions

View File

@ -135,7 +135,7 @@ class Doctrine_Connection_TestCase extends Doctrine_UnitTestCase {
}
public function testDelete() {
$user = $this->connection->create('User');
$this->connection->delete($user);
$this->connection->unitOfWork->delete($user);
$this->assertEqual($user->state(),Doctrine_Record::STATE_TCLEAN);
}
public function testGetTable() {

View File

@ -38,8 +38,7 @@ class Doctrine_PessimisticLocking_TestCase extends Doctrine_UnitTestCase {
*
* Creates a locking manager and a test record to work with.
*/
public function setUp() {
parent::setUp();
public function testInitData() {
$this->lockingManager = new Doctrine_Locking_Manager_Pessimistic($this->connection);
// Create sample data to test on