D
D
Diabo1ic2016-04-04 14:34:40
PostgreSQL
Diabo1ic, 2016-04-04 14:34:40

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

Searched similar problems in Google, but nothing helped. I also disabled triggers with the command:
ALTER TABLE "tablename" DISABLE TRIGGER ALL;
No result.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Elena Stepanova, 2016-04-24
@Diabo1ic

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 question

Ask a Question

731 491 924 answers to any question