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

CalcCodeFixture don't create Oracle Package. #4

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

CalcCodeFixture don't create Oracle Package. #4

hisame64 opened this issue Mar 26, 2016 · 1 comment

Comments

@hisame64
Copy link

I run tests/TestCase/ORM/MethodTest.php , an error have occurred.

[vagrant@localhost public]$ vendor/bin/phpunit --bootstrap ./tests/bootstrap.php tests/TestCase/ORM/MethodTest.php 
PHPUnit 5.2.9 by Sebastian Bergmann and contributors.

E                                                                   1 / 1 (100%)

Time: 2.02 seconds, Memory: 5.75Mb

There was 1 error:

1) CakeDC\OracleDriver\Test\TestCase\ORM\MethodTest::testMethodCall
Cake\Database\Exception: Cannot describe CALC.SUM. Method not found.

/home/dev/public/src/Database/Schema/MethodsCollection.php:111
/home/dev/public/src/ORM/Method.php:125
/home/dev/public/src/ORM/Request.php:49
/home/dev/public/src/ORM/Method.php:232
/home/dev/public/tests/TestCase/ORM/MethodTest.php:30

FAILURES!
Tests: 1, Assertions: 0, Errors: 1.

I run this test again after I created calc package, this test is success.

[vagrant@localhost public]$ vendor/bin/phpunit --bootstrap ./tests/bootstrap.php tests/TestCase/ORM/MethodTest.php 
PHPUnit 5.2.9 by Sebastian Bergmann and contributors.

.                                                                   1 / 1 (100%)

Time: 2.76 seconds, Memory: 6.25Mb

OK (1 test, 5 assertions)

I think CalcCodeFixture don't create Oracle Package.

@skie
Copy link
Member

skie commented Apr 11, 2016

Seems issue that you did not have phpunt.xml
Calc code fixture executed properly on our test env. Please ensure you are passing correct Connection class (OracleConnection) in env.

@skie skie closed this as completed Apr 11, 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