0

Well, I struggle to run simpletest on my PhpStorm. I tried a lot of things but I'm unable to find what I did wrong.

I followed thoses tutorial :

Here it's my error when I execute a test which extends BrowserTestBase

Drupal\Core\Installer\Exception\AlreadyInstalledException: <ul>
<li>To start over, you must empty your existing database and copy <em>default.settings.php</em> over <em>settings.php</em>.</li>
<li>To upgrade an existing installation, proceed to the <a href="/update.php">update script</a>.</li>
<li>View your <a href="http://drupal-8-5-demo2.dd:8083">existing site</a>.</li>
</ul>

My phpunit.xml

<env name="SIMPLETEST_BASE_URL" value="http://dev.test.com"/>
<env name="SIMPLETEST_DB" value="mysql://root:root@127.0.0.1/Test#"/>
<env name="BROWSERTEST_OUTPUT_DIRECTORY" value="/Users/MY_PATH/sites/simpletest/browser_output"/>

I grant write permission for the folder browser_output, on docker and my computer. And I check what this guy on the Drupal Forum says, but I have always the same error.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.