expect also sqlite exception message in test

This commit is contained in:
thrillfall 2021-10-05 20:49:13 +02:00
parent ac1acf079b
commit aa09c8d0a3
1 changed files with 3 additions and 1 deletions

View File

@ -50,7 +50,9 @@ class EpisodeActionGuidMigrationTest extends TestCase
public function testCreateSameEpisodeActionTriggersUniqueConstraintViolationException() public function testCreateSameEpisodeActionTriggersUniqueConstraintViolationException()
{ {
self::expectExceptionMessageMatches("/duplicate key value violates unique constraint/"); self::expectExceptionMessageMatches(
"/(duplicate key value violates unique constraint|Integrity constraint violation)/"
);
$episodeActionEntity = new EpisodeActionEntity(); $episodeActionEntity = new EpisodeActionEntity();
$episodeActionEntity->setPodcast("https://podcast_01.url"); $episodeActionEntity->setPodcast("https://podcast_01.url");