Skip to content

Commit

Permalink
Merge pull request #14328 from eileenmcnaughton/dbunit
Browse files Browse the repository at this point in the history
 [dbunit test] remove dbunit dependency
  • Loading branch information
seamuslee001 authored May 25, 2019
2 parents b1cee37 + cf17162 commit 7c295e8
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 7c295e8

Please sign in to comment.