Commit 3d736d32 authored by zYne's avatar zYne

--no commit message

--no commit message
parent 58f6d356
......@@ -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);
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment