1
0
mirror of synced 2024-12-05 03:06:05 +03:00

Skipping DDC-3634 tests when a post-insert generator is unavailable

This commit is contained in:
Marco Pivetta 2015-03-24 00:20:03 +00:00
parent 70c8591bbe
commit 06998d015f

View File

@ -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),
]);