Fix tests so that PostgreSQL does not fail anymore on certain test.
This commit is contained in:
parent
988d229c07
commit
22ffbe7488
@ -8,9 +8,23 @@ require_once __DIR__ . '/../../../TestInit.php';
|
|||||||
|
|
||||||
class DDC168Test extends \Doctrine\Tests\OrmFunctionalTestCase
|
class DDC168Test extends \Doctrine\Tests\OrmFunctionalTestCase
|
||||||
{
|
{
|
||||||
|
protected $oldMetadata;
|
||||||
|
|
||||||
protected function setUp() {
|
protected function setUp() {
|
||||||
$this->useModelSet('company');
|
$this->useModelSet('company');
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
$this->oldMetadata = $this->_em->getClassMetadata('Doctrine\Tests\Models\Company\CompanyEmployee');
|
||||||
|
|
||||||
|
$metadata = clone $this->oldMetadata;
|
||||||
|
ksort($metadata->reflFields);
|
||||||
|
$this->_em->getMetadataFactory()->setMetadataFor('Doctrine\Tests\Models\Company\CompanyEmployee', $metadata);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function tearDown()
|
||||||
|
{
|
||||||
|
$this->_em->getMetadataFactory()->setMetadataFor('Doctrine\Tests\Models\Company\CompanyEmployee', $this->oldMetadata);
|
||||||
|
parent::tearDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -20,9 +34,6 @@ class DDC168Test extends \Doctrine\Tests\OrmFunctionalTestCase
|
|||||||
{
|
{
|
||||||
//$this->_em->getConnection()->getConfiguration()->setSQLLogger(new \Doctrine\DBAL\Logging\EchoSQLLogger);
|
//$this->_em->getConnection()->getConfiguration()->setSQLLogger(new \Doctrine\DBAL\Logging\EchoSQLLogger);
|
||||||
|
|
||||||
$metadata = $this->_em->getClassMetadata('Doctrine\Tests\Models\Company\CompanyEmployee');
|
|
||||||
ksort($metadata->reflFields);
|
|
||||||
|
|
||||||
$spouse = new CompanyEmployee;
|
$spouse = new CompanyEmployee;
|
||||||
$spouse->setName("Blub");
|
$spouse->setName("Blub");
|
||||||
$spouse->setDepartment("Accounting");
|
$spouse->setDepartment("Accounting");
|
||||||
|
@ -21,6 +21,8 @@ class DDC933Test extends \Doctrine\Tests\OrmFunctionalTestCase
|
|||||||
*/
|
*/
|
||||||
public function testLockCTIClass()
|
public function testLockCTIClass()
|
||||||
{
|
{
|
||||||
|
//$this->_em->getConnection()->getConfiguration()->setSQLLogger(new \Doctrine\DBAL\Logging\EchoSQLLogger());
|
||||||
|
|
||||||
$manager = new \Doctrine\Tests\Models\Company\CompanyManager();
|
$manager = new \Doctrine\Tests\Models\Company\CompanyManager();
|
||||||
$manager->setName('beberlei');
|
$manager->setName('beberlei');
|
||||||
$manager->setSalary(1234);
|
$manager->setSalary(1234);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user