Update tests for new MySQL version

[MAILPOET-2640]
This commit is contained in:
Pavel Dohnal
2020-01-16 10:28:21 +01:00
committed by Rostislav Wolný
parent 3b9ba5cac2
commit 2496cb7fce
2 changed files with 3 additions and 4 deletions

View File

@@ -47,7 +47,8 @@ class SaverTest extends \MailPoetTest {
'description' => 'desc2',
'id' => $dynamicSegment1->id,
]);
$this->setExpectedException('\MailPoet\DynamicSegments\Exceptions\ErrorSavingException', 'Another record already exists. Please specify a different "PRIMARY".', Model::DUPLICATE_RECORD);
$this->expectException('\MailPoet\DynamicSegments\Exceptions\ErrorSavingException');
$this->expectExceptionCode(Model::DUPLICATE_RECORD);
$this->saver->save($dynamicSegment2);
}