@c960657 opened this Pull Request on April 28th 2018 Contributor

Piwik\Plugins\CoreAdminHome\tests\Integration\Commands\SetConfigTest tries to access the main database. This may fail due to lack of permission.

1) Piwik\Plugins\CoreAdminHome\tests\Integration\Commands\SetConfigTest
Failed to setup fixture: TEST INITIALIZATION FAILED: SQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user 'matomo_dev'@'localhost' to database 'matomo_test'
<a href='/0'>#0</a> /var/www/matomo/core/Db.php(168): Zend_Db_Adapter_Pdo_Abstract->exec('CREATE DATABASE...')
<a href='/1'>#1</a> /var/www/matomo/core/Db/Schema/Mysql.php(386): Piwik\Db::exec('CREATE DATABASE...')
<a href='/2'>#2</a> /var/www/matomo/core/Db/Schema.php(117): Piwik\Db\Schema\Mysql->createDatabase('matomo_test')
<a href='/3'>#3</a> /var/www/matomo/core/DbHelper.php(152): Piwik\Db\Schema->createDatabase('matomo_test')
<a href='/4'>#4</a> /var/www/matomo/tests/PHPUnit/Framework/Fixture.php(235): Piwik\DbHelper::createDatabase('matomo_test')
<a href='/5'>#5</a> /var/www/matomo/tests/PHPUnit/Framework/TestCase/SystemTestCase.php(76): Piwik\Tests\Framework\Fixture->performSetUp()
<a href='/6'>#6</a> /var/www/matomo/plugins/CoreAdminHome/tests/Integration/SetConfigTest.php(29): Piwik\Tests\Framework\TestCase\SystemTestCase::setUpBeforeClass()
<a href='/7'>#7</a> /var/www/matomo/vendor/phpunit/phpunit/src/Framework/TestSuite.php(672): Piwik\Plugins\CoreAdminHome\tests\Integration\Commands\SetConfigTest::setUpBeforeClass()
<a href='/8'>#8</a> /var/www/matomo/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(440): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
<a href='/9'>#9</a> /var/www/matomo/vendor/phpunit/phpunit/src/TextUI/Command.php(149): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array)
<a href='/10'>#10</a> /var/www/matomo/vendor/phpunit/phpunit/src/TextUI/Command.php(100): PHPUnit_TextUI_Command->run(Array, true)
<a href='/11'>#11</a> /var/www/matomo/vendor/phpunit/phpunit/phpunit(52): PHPUnit_TextUI_Command::main()
<a href='/12'>#12</a> {main}
This Pull Request was closed on July 7th 2018
Powered by GitHub Issue Mirror