Unverified Commit ce401dd3 authored by Sergei Morozov's avatar Sergei Morozov Committed by GitHub

Merge pull request #3705 from Federkun/fix-sqlite-test

Don't skip a test for sqlite
parents 8be62b20 4ee89c62
...@@ -296,7 +296,7 @@ class ExceptionTest extends DbalFunctionalTestCase ...@@ -296,7 +296,7 @@ class ExceptionTest extends DbalFunctionalTestCase
public function testConnectionExceptionSqLite() : void public function testConnectionExceptionSqLite() : void
{ {
if ($this->connection->getDatabasePlatform() instanceof SqlitePlatform) { if (! ($this->connection->getDatabasePlatform() instanceof SqlitePlatform)) {
$this->markTestSkipped('Only fails this way on sqlite'); $this->markTestSkipped('Only fails this way on sqlite');
} }
...@@ -327,7 +327,8 @@ class ExceptionTest extends DbalFunctionalTestCase ...@@ -327,7 +327,8 @@ class ExceptionTest extends DbalFunctionalTestCase
$table->addColumn('id', 'integer'); $table->addColumn('id', 'integer');
$this->expectException(Exception\ReadOnlyException::class); $this->expectException(Exception\ReadOnlyException::class);
$this->expectExceptionMessage(<<<EOT $this->expectExceptionMessage(
<<<EOT
An exception occurred while executing 'CREATE TABLE no_connection (id INTEGER NOT NULL)': An exception occurred while executing 'CREATE TABLE no_connection (id INTEGER NOT NULL)':
SQLSTATE[HY000]: General error: 8 attempt to write a readonly database SQLSTATE[HY000]: General error: 8 attempt to write a readonly database
......
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