Commit 1bfef125 authored by Steve Müller's avatar Steve Müller

fix test for platforms supporting both sequences and identity columns

parent d79ce18e
......@@ -175,8 +175,8 @@ class WriteTest extends \Doctrine\Tests\DbalFunctionalTestCase
public function testLastInsertIdNoSequenceGiven()
{
if ( ! $this->_conn->getDatabasePlatform()->supportsSequences()) {
$this->markTestSkipped('Test only works on platforms with sequences.');
if ( ! $this->_conn->getDatabasePlatform()->supportsSequences() || $this->_conn->getDatabasePlatform()->supportsIdentityColumns()) {
$this->markTestSkipped("Test only works consistently on platforms that support sequences and don't support identity columns.");
}
$this->assertFalse($this->_conn->lastInsertId( 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