Skip to content

Commit

Permalink
[dbunit test] remove dbunit dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed May 25, 2019
1 parent 7176ec2 commit cf17162
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/phpunit/CiviTest/CiviUnitTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();

Expand All @@ -257,7 +256,6 @@ protected function getConnection() {
self::$dbInit = TRUE;
}

return $this->createDefaultDBConnection(Civi\Test::pdo(), $dbName);
}

/**
Expand Down

0 comments on commit cf17162

Please sign in to comment.