Answer the question
In order to leave comments, you need to log in
How to fix Yii2 (codeception, postgresql) testing error?
Good afternoon!
Postgresql 9.5 database installed.
I'm starting to understand Codeception, when I run the test: I get codecept run
an error:
[PDOException]
SQLSTATE[42501]: Insufficient privilege: 7 ERROR: permission denied: "RI_ConstraintTrigger_a_67472" is a system trigger
ALTER TABLE "tablename" DISABLE TRIGGER ALL;
Answer the question
In order to leave comments, you need to log in
yiiframework.ru/forum/viewtopic.php?t=7768
there is a solution for yii1 but the meaning is the same... it's the fixture loaders that provoke.
if you don't use fixtures then just inherit from TestCase and not DbTestCase
or override checkIntegrity methods from yii\test\InitDbFixture
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question