Closed ghost closed 6 years ago
Ah there is more, thanks. I would have a look.
are you running the init commands? we do this for this bundle itself: https://github.com/doctrine/DoctrinePHPCRBundle/blob/b265cdca6f04206ac6a7ef771f9cb1bf8749ea30/.travis/phpcr_odm_doctrine_dbal.sh
Yes, the init's been run.
Otherwise, you wouldn't see:
+----------------------------+
| Tables_in_testdb_phpcr |
+----------------------------+
...
| phpcr_workspaces |
+----------------------------+
hm, this is odd. could it be that the wrong database is initialized? i see that the db name is testdb, but is that the one configured in your config_test or the one from config_dev? i feel it must be something about the setup / bootstrapping, because its not fundamentally broken (tests of the packages work on travis-ci).
No, the db name is
testdb_phpcr
It's the only DB i'm referencing here.
well, as you see that the table exists, and then the test says it does not, either something destroys the table during your bootstrap, or its talking to different databases. the tests of this bundle work, so its not fundamentally broken and must be something in the bootstrap or setup
Which is exactly why I'd asked in #channnel for examples of running this specific test, and was subsequently asked to 1st provide documentation of this problem.
the tests do run here: https://travis-ci.org/doctrine/DoctrinePHPCRBundle
i unfortunately don't know what goes wrong with your test run, the configuration you pasted looks sane. and the error sounds so fundamental that i suspect that the setup / bootstrapping must be the problem.
i can't reproduce the problem, closing this issue for now. if you have further details that help to debug the issue, lets reopen this or discuss in slack.
for
clone to test
set up & verify database
edit DSN in 'phpunit.xml.dist'
exec test fails at database connection
current, parent project config includes