Fix duplicate key messages for MySQL >= 8.0.19
[MAILPOET-2642]
This commit is contained in:
committed by
Jack Kitterhing
parent
dc7e87a67f
commit
996b58a388
@@ -49,6 +49,7 @@ class SaverTest extends \MailPoetTest {
|
||||
]);
|
||||
$this->expectException('\MailPoet\DynamicSegments\Exceptions\ErrorSavingException');
|
||||
$this->expectExceptionCode(Model::DUPLICATE_RECORD);
|
||||
$this->expectExceptionMessage('Another record already exists. Please specify a different "PRIMARY".');
|
||||
$this->saver->save($dynamicSegment2);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user