Skip to content

Commit

Permalink
add test case that covers deprecated "ExceptionConverterDriver" logic (
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaicher committed Oct 30, 2020
1 parent 3dba24d commit 9d201b0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/Functional/FunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Tests\Functional;

use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Exception\TableNotFoundException;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpKernel\KernelInterface;

Expand Down Expand Up @@ -98,4 +99,10 @@ public function testRollBackChangesWithReOpenedConnection(): void
$this->connection->commit();
$this->assertRowCount(0);
}

public function testWillThrowSpecificException(): void
{
$this->expectException(TableNotFoundException::class);
$this->connection->insert('does_not_exist', ['foo' => 'bar']);
}
}

0 comments on commit 9d201b0

Please sign in to comment.