1
0
mirror of synced 2024-12-13 06:46:03 +03:00
This commit is contained in:
zYne 2007-07-05 23:25:36 +00:00
parent 58f6d356e0
commit 3d736d32b4
2 changed files with 9 additions and 9 deletions

View File

@ -190,7 +190,7 @@ class Doctrine_Relation_Parser_TestCase extends Doctrine_UnitTestCase
$r->bind('Entity', $p);
$rel = $r->getRelation('Entity');
$this->assertTrue($rel instanceof Doctrine_Relation_Association_Self);
$this->assertTrue($rel instanceof Doctrine_Relation_Nest);
$rel = $r->getRelation('EntityReference');
$this->assertTrue($rel instanceof Doctrine_Relation_ForeignKey);

View File

@ -36,7 +36,7 @@ class Doctrine_Table_TestCase extends Doctrine_UnitTestCase
public function prepareTables()
{
$this->tables[] = 'FieldNameTest';
parent::prepareTables();
parent::prepareTables();
}
public function testFieldConversion()
@ -104,23 +104,23 @@ class Doctrine_Table_TestCase extends Doctrine_UnitTestCase
$this->assertTrue($fk->getForeign() == $fk->getTable()->getIdentifier());
$fk = $this->objTable->getRelation("Phonenumber");
$fk = $this->objTable->getRelation('Phonenumber');
$this->assertTrue($fk instanceof Doctrine_Relation_ForeignKey);
$this->assertTrue($fk->getTable() instanceof Doctrine_Table);
$this->assertTrue($fk->getType() == Doctrine_Relation::MANY_COMPOSITE);
$this->assertTrue($fk->getType() == Doctrine_Relation::MANY);
$this->assertTrue($fk->getLocal() == $this->objTable->getIdentifier());
$this->assertTrue($fk->getForeign() == "entity_id");
$this->assertTrue($fk->getForeign() == 'entity_id');
}
public function testGetComponentName()
{
$this->assertTrue($this->objTable->getComponentName() == "User");
$this->assertTrue($this->objTable->getComponentName() == 'User');
}
public function testGetTableName()
{
$this->assertTrue($this->objTable->tableName == "entity");
$this->assertTrue($this->objTable->tableName == 'entity');
}
public function testGetConnection()
@ -135,8 +135,8 @@ class Doctrine_Table_TestCase extends Doctrine_UnitTestCase
public function testSetSequenceName()
{
$this->objTable->sequenceName = "test-seq";
$this->assertEqual($this->objTable->sequenceName, "test-seq");
$this->objTable->sequenceName = 'test-seq';
$this->assertEqual($this->objTable->sequenceName, 'test-seq');
$this->objTable->sequenceName = null;
}