Re: [Wikitech-l] PHPUnit error: Cannot access the database: Unknown database

2017-10-25 Thread Sebastian Berlin
That did it. Thanks a lot. I added a line about this to the Wiki-page. Best, *Sebastian Berlin* Utvecklare/*Developer* Wikimedia Sverige (WMSE) E-post/*E-Mail*: sebastian.ber...@wikimedia.se Telefon/*Phone*: (+46) 0707 - 92 03 84 On 25 October 2017 at 12:39, Brian Wolff

Re: [Wikitech-l] PHPUnit error: Cannot access the database: Unknown database

2017-10-25 Thread Brian Wolff
Try passing --wiki wiki As a command line argument to the script. (Assuming wiki is the db name. Otherwise pass --wiki dbname_here ) -- bawolff On Wednesday, October 25, 2017, Sebastian Berlin < sebastian.ber...@wikimedia.se> wrote: > I'm having trouble running PHPUnit for the extension I'm

[Wikitech-l] PHPUnit error: Cannot access the database: Unknown database

2017-10-25 Thread Sebastian Berlin
I'm having trouble running PHPUnit for the extension I'm developing (Wikispeech), in Vagrant. I followed the instructions on https://www.mediawiki.org/wiki/Manual:PHP_unit_testing/Writing_unit_tests_for_extensions#Run_your_tests, i.e. `tests/phpunit/phpunit.php extensions/Wikispeech/tests`, and