yii2: Codeception: oci does not support enabling/disabling integrity check.
I am working through the fixture section in the guide, but I am getting the following error, so I think that there should be some more information around this in the docs and examples of work around.
What steps will reproduce the problem?
Using an Oracle DB
Follow the guide https://www.yiiframework.com/doc/guide/2.0/en/test-fixtures to $profile = $I->grabFixture('profiles', 'user1');
What is the expected result?
That the fixture is loaded and I can see the record in DB.
What do you get instead?
Exception in Console when running tests
[yii\base\NotSupportedException] oci does not support enabling/disabling integrity check.
Additional info
| Q | A |
|---|---|
| Yii version | 2.0.15.1 |
| PHP version | 7.1.1 |
| Operating system | Windows 7 |
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 24 (22 by maintainers)
Commits related to this issue
- Fix #16116: Codeception: oci does not support enabling/disabling integrity check — committed to rob006/yii2-dev by terabytesoftw 2 years ago
- Fix #16116: Codeception: oci does not support enabling/disabling integrity check — committed to terabytesoftw/yii2 by terabytesoftw 2 years ago
I just stumbled upon this trying to use fixtures with an IBM Informix database. A quick workaround is to copy the InitDbFixture class from vendor/yiisoft/yii2/test into your application. Then use Composers files feature to tell it to use yours instead:
In your InitDbFixture class comment the checkIntegrity() function body out.