Skip to content
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

Tests can't be executed. #3

Closed
hisame64 opened this issue Mar 26, 2016 · 1 comment
Closed

Tests can't be executed. #3

hisame64 opened this issue Mar 26, 2016 · 1 comment

Comments

@hisame64
Copy link

I run phpunit, but error.

[vagrant@localhost public]$ vendor/bin/phpunit 
PHPUnit 5.2.9 by Sebastian Bergmann and contributors.

PHP Warning:  Fixture creation for "comments" failed "ORA-00904: : invalid identifier" in /home/dev/public/vendor/cakephp/cakephp/src/TestSuite/Fixture/TestFixture.php on line 303

Warning: Fixture creation for "comments" failed "ORA-00904: : invalid identifier" in /home/dev/public/vendor/cakephp/cakephp/src/TestSuite/Fixture/TestFixture.php on line 303
PHP Fatal error:  Uncaught exception 'CakeDC\OracleDriver\Database\OCI8\OCI8Exception' with message 'ORA-01747: invalid user.table.column, table.column, or column specification' in /home/dev/public/src/Database/OCI8/OCI8Exception.php:26
Stack trace:
#0 /home/dev/public/src/Database/OCI8/OCI8Statement.php(251): CakeDC\OracleDriver\Database\OCI8\OCI8Exception::fromErrorInfo(Array)
#1 /home/dev/public/vendor/cakephp/cakephp/src/Database/Statement/StatementDecorator.php(171): CakeDC\OracleDriver\Database\OCI8\OCI8Statement->execute(NULL)
#2 /home/dev/public/src/Database/Statement/OracleStatement.php(43): Cake\Database\Statement\StatementDecorator->execute(NULL)
#3 /home/dev/public/vendor/cakephp/cakephp/src/Database/Connection.php(270): CakeDC\OracleDriver\Database\Statement\OracleStatement->execute()
#4 /home/dev/public/vendor/cakephp/cakephp/src/Database/Query.php(188): Cake\Database\Connection->run(Object(Cake\Database\Query))
#5 /home/dev/public/vendor/cakephp/cakephp/src/TestSuite/Fixture/TestFixture.php(347): Cake\Database\Q in /home/dev/public/src/Database/OCI8/OCI8Exception.php on line 26

Fatal error: Uncaught exception 'CakeDC\OracleDriver\Database\OCI8\OCI8Exception' with message 'ORA-01747: invalid user.table.column, table.column, or column specification' in /home/dev/public/src/Database/OCI8/OCI8Exception.php:26
Stack trace:
#0 /home/dev/public/src/Database/OCI8/OCI8Statement.php(251): CakeDC\OracleDriver\Database\OCI8\OCI8Exception::fromErrorInfo(Array)
#1 /home/dev/public/vendor/cakephp/cakephp/src/Database/Statement/StatementDecorator.php(171): CakeDC\OracleDriver\Database\OCI8\OCI8Statement->execute(NULL)
#2 /home/dev/public/src/Database/Statement/OracleStatement.php(43): Cake\Database\Statement\StatementDecorator->execute(NULL)
#3 /home/dev/public/vendor/cakephp/cakephp/src/Database/Connection.php(270): CakeDC\OracleDriver\Database\Statement\OracleStatement->execute()
#4 /home/dev/public/vendor/cakephp/cakephp/src/Database/Query.php(188): Cake\Database\Connection->run(Object(Cake\Database\Query))
#5 /home/dev/public/vendor/cakephp/cakephp/src/TestSuite/Fixture/TestFixture.php(347): Cake\Database\Q in /home/dev/public/src/Database/OCI8/OCI8Exception.php on line 26

I think this driver can't use CakePHP's CommentsFixture.
How do you run tests?

@skie
Copy link
Member

skie commented Apr 11, 2016

I pushed phpunit.xml.dist file. Copy this file to phpunit.xml locally. Check env for oracle driver setup and configre it properly for your database connection. Tests you can run using command "phpunit". You dont need to pass bootsrap file as param as it will configured by phpunit.xml file..

@skie skie closed this as completed Apr 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants