From 8e600067444f0478a7091109cf78757176251f69 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 12 Nov 2018 12:22:04 +0100 Subject: Exception is not thrown anymore Signed-off-by: Morris Jobke --- tests/lib/DB/ConnectionTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/lib/DB') diff --git a/tests/lib/DB/ConnectionTest.php b/tests/lib/DB/ConnectionTest.php index 857bb3cd79f..02dd6a1495c 100644 --- a/tests/lib/DB/ConnectionTest.php +++ b/tests/lib/DB/ConnectionTest.php @@ -314,11 +314,10 @@ class ConnectionTest extends \Test\TestCase { /** * @dataProvider insertIfNotExistsViolatingThrows - * @expectedException \Doctrine\DBAL\Exception\UniqueConstraintViolationException * * @param array $compareKeys */ - public function testInsertIfNotExistsViolatingThrows($compareKeys) { + public function testInsertIfNotExistsViolatingUnique($compareKeys) { $this->makeTestTable(); $result = $this->connection->insertIfNotExist('*PREFIX*table', [ -- cgit v1.2.3