[2.0] More coverage to AbstractSchemaName.
This commit is contained in:
parent
b4b64b1ee9
commit
20c8416607
@ -377,6 +377,11 @@ class LanguageRecognitionTest extends \Doctrine\Tests\OrmTestCase
|
||||
$this->assertInvalidDql('select u, (select max(p.phonenumber) from Doctrine\Tests\Models\CMS\CmsPhonenumber p) maxId from Doctrine\Tests\Models\CMS\CmsUser u WHERE p.user = ?1');
|
||||
}
|
||||
|
||||
public function testUnknownAbstractSchemaName()
|
||||
{
|
||||
$this->assertInvalidDql('SELECT u FROM UnknownClassName u');
|
||||
}
|
||||
|
||||
/**
|
||||
* This checks for invalid attempt to hydrate a proxy. It should throw an exception
|
||||
*
|
||||
|
@ -23,10 +23,6 @@ class SelectSqlGenerationTest extends \Doctrine\Tests\OrmTestCase
|
||||
parent::assertEquals($sqlToBeConfirmed, $query->getSql());
|
||||
$query->free();
|
||||
} catch (Doctrine_Exception $e) {
|
||||
if ($debug) {
|
||||
echo $e->getTraceAsString() . PHP_EOL;
|
||||
}
|
||||
|
||||
$this->fail($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user