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
Changes for tests/BaseDAOTest.php: 4 added lines, 0 removed lines.
Original line number Original line Diff line number Diff line
@@ -4,6 +4,10 @@ abstract class BaseDAOTest extends \PHPUnit\Framework\TestCase {


    protected function getFakeLocator(): \RAP\Locator {
    protected function getFakeLocator(): \RAP\Locator {


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