-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Codeception: oci does not support enabling/disabling integrity check. #16116
Comments
@jonny7 it's mentioned at https://codeception.com/for/yii:
|
Hi @samdark I had changed those and I still get the same error. I will post my relevant code and then you can see if I have made a mistake :) codeception.yml
Functional.suite.yml
I have changed different ProcessorCest
I'm using an Oracle 11g for my test database. I wanted to use Fixtures as it seems much cleaner. |
I am still having the same error with this having made @samdark suggestion. So I feel that either, there is a potential bug/exception to doing something with OCI. Or, that there needs to be a bit clearer documentation around this if the fix is something else. I am a huge fan of Yii, been using it since Yii1, brought Yii2 to my work too and a big fan of Codeception too. Not sure who actively is monitoring Github has of right now, so including @cebe @SilverFire :-) |
@SamMousa could it be connected with recent changes? |
@samdark Thanks for re-opening for me. I do really appreciate it. I always do my best to answer these questions myself, through the going through the code or docs, but I can't figure this one out. I also know that Oracle is a more difficult DB to use and not as commonly used with PHP. Thanks again |
Not sure, stack trace of the exception would be great. |
Apologies for leaving it out
#1 C:\xampp-7\htdocs\www\vendor\yiisoft\yii2\db\QueryBuilder.php:1053 When --debug and -vvv I also get
Relevant Composer
|
It seems upon unloading fixtures I haven't touched the fixtures part and am not sure what (if anything) has changed with respect to unloading fixtures. Could it be that |
Yes. |
I think it's the unloading before loading: https://github.com/Codeception/Codeception/blame/2.4/src/Codeception/Module/Yii2.php#L520 @jonny7 could you check your previous working version? |
Thanks @SamMousa I only just started converted some tests to use fixtures properly. But I can update my composer to reflect what is needed and try again. What changes should I make to my composer.json? |
None, it is a bug but it had existed for at least a year. I'll get back to you |
@samdark I think the solution is to wrap the code in |
I wrapped the
But if you had a work-around I could use until an official fix, that would be great! |
Any ideas on the on a timeline for this fix? 😄 |
Feel free to create a PR, since I don't use this and I didn't cause this, it doesn't have high priority for me. |
Hi @samdark Could we get a bug tag added here, just so it's on people's radar. thanks 😄 |
@CedricYii That error is really for a suggestion as to what might be able to stop the subject of this ticket erroring. I'm watching your PR now and will certainly see when it's merged in if it helps this problem. Thanks |
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: "autoload": {
"exclude-from-classmap": [
"vendor/yiisoft/yii2/test/InitDbFixture.php"
],
"files": ["path/to/your/InitDbFixture.php"]
}, In your InitDbFixture class comment the checkIntegrity() function body out. |
I get the same problem. I want possible to disable/enabled |
We can simply run |
You could try this PR, this should solve the problem correctly. |
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
Additional info
The text was updated successfully, but these errors were encountered: