expect also sqlite exception message in test
This commit is contained in:
parent
ac1acf079b
commit
aa09c8d0a3
@ -50,7 +50,9 @@ class EpisodeActionGuidMigrationTest extends TestCase
|
||||
|
||||
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->setPodcast("https://podcast_01.url");
|
||||
|
Loading…
Reference in New Issue
Block a user