From cf171623721d2d1589c360ea4f76aee8d579e246 Mon Sep 17 00:00:00 2001 From: eileen Date: Sat, 25 May 2019 17:59:02 +1200 Subject: [PATCH] [dbunit test] remove dbunit dependency --- tests/phpunit/CiviTest/CiviUnitTestCase.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/phpunit/CiviTest/CiviUnitTestCase.php b/tests/phpunit/CiviTest/CiviUnitTestCase.php index 1588cec40c86..67cda7b0d781 100644 --- a/tests/phpunit/CiviTest/CiviUnitTestCase.php +++ b/tests/phpunit/CiviTest/CiviUnitTestCase.php @@ -52,7 +52,7 @@ * Common functions for unit tests * @package CiviCRM */ -class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase { +class CiviUnitTestCase extends PHPUnit_Framework_TestCase { use \Civi\Test\Api3DocTrait; use \Civi\Test\GenericAssertionsTrait; @@ -245,7 +245,6 @@ public static function getDBName() { * @return PHPUnit_Extensions_Database_DB_IDatabaseConnection connection */ protected function getConnection() { - $dbName = self::$_dbName; if (!self::$dbInit) { $dbName = self::getDBName(); @@ -257,7 +256,6 @@ protected function getConnection() { self::$dbInit = TRUE; } - return $this->createDefaultDBConnection(Civi\Test::pdo(), $dbName); } /**