]> git.mxchange.org Git - friendica.git/blobdiff - tests/DatabaseTest.php
Fixes the missing refresh after ignoring or unignoring a thread (#5614)
[friendica.git] / tests / DatabaseTest.php
index eb9399ab808a76f5c0b6366f3c2c0b71057bb2b4..9844699b069e86b885a0f3eab393042956648adc 100644 (file)
@@ -32,11 +32,15 @@ abstract class DatabaseTest extends TestCase
         */
        protected function getConnection()
        {
+               if (!getenv('MYSQL_DATABASE')) {
+                       $this->markTestSkipped('Please set the MYSQL_* environment variables to your test database credentials.');
+               }
+
                if (!DBA::connected()) {
                        $this->markTestSkipped('Could not connect to the database.');
                }
 
-               return $this->createDefaultDBConnection(DBA::get_db(), getenv('MYSQL_DATABASE'));
+               return $this->createDefaultDBConnection(DBA::getConnection(), getenv('MYSQL_DATABASE'));
        }
 
        /**