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