Commit 933bc566 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Skipped DAO tests unless explicitly allowed

parent 3c3737cc
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -4,6 +4,10 @@ abstract class BaseDAOTest extends \PHPUnit\Framework\TestCase {

    protected function getFakeLocator(): \RAP\Locator {

        if (getenv('TEST_DAO') !== 'true') {
            $this->markTestSkipped('Test database is needed for testing DAO classes');
        }
        
        $config = (object) [
                    "databaseConfig" => (object) [
                        "dbtype" => 'MySQL',