Skipping DDC-3634 tests when a post-insert generator is unavailable
This commit is contained in:
parent
70c8591bbe
commit
06998d015f
@ -16,9 +16,15 @@ class DDC3634Test extends OrmFunctionalTestCase {
|
||||
protected function setUp() {
|
||||
parent::setUp();
|
||||
|
||||
$metadata = $this->_em->getClassMetadata(DDC3634Entity::CLASSNAME);
|
||||
|
||||
if (! $metadata->idGenerator->isPostInsertGenerator()) {
|
||||
$this->markTestSkipped('Need a post-insert ID generator in order to make this test work correctly');
|
||||
}
|
||||
|
||||
try {
|
||||
$this->_schemaTool->createSchema([
|
||||
$this->_em->getClassMetadata(DDC3634Entity::CLASSNAME),
|
||||
$metadata,
|
||||
$this->_em->getClassMetadata(DDC3634JTIBaseEntity::CLASSNAME),
|
||||
$this->_em->getClassMetadata(DDC3634JTIChildEntity::CLASSNAME),
|
||||
]);
|
||||
|
Loading…
Reference in New Issue
Block a user