From 933bc56624150f4ddf5c31b6213dbef65e43da33 Mon Sep 17 00:00:00 2001 From: Sonia Zorba <sonia.zorba@inaf.it> Date: Fri, 14 May 2021 18:13:03 +0200 Subject: [PATCH] Skipped DAO tests unless explicitly allowed --- tests/BaseDAOTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/BaseDAOTest.php b/tests/BaseDAOTest.php index 2c6e77e..b0a2445 100644 --- a/tests/BaseDAOTest.php +++ b/tests/BaseDAOTest.php @@ -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', -- GitLab