projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fe119a
)
CiviUnitTestCase - Remove unused property $_dbconn
author
Tim Otten
<totten@civicrm.org>
Thu, 15 Dec 2022 07:02:11 +0000
(23:02 -0800)
committer
Tim Otten
<totten@civicrm.org>
Fri, 16 Dec 2022 05:03:15 +0000
(21:03 -0800)
tests/phpunit/CiviTest/CiviUnitTestCase.php
patch
|
blob
|
blame
|
history
diff --git
a/tests/phpunit/CiviTest/CiviUnitTestCase.php
b/tests/phpunit/CiviTest/CiviUnitTestCase.php
index feec9a0a2388aebf08cb49d3eb0ba149e22ab340..603331a564b0b3dc865884c705ac36be8938d7c6 100644
(file)
--- a/
tests/phpunit/CiviTest/CiviUnitTestCase.php
+++ b/
tests/phpunit/CiviTest/CiviUnitTestCase.php
@@
-83,13
+83,6
@@
class CiviUnitTestCase extends PHPUnit\Framework\TestCase {
*/
private static $dbInit = FALSE;
- /**
- * Database connection.
- *
- * @var PHPUnit_Extensions_Database_DB_IDatabaseConnection
- */
- protected $_dbconn;
-
/**
* API version in use.
*
@@
-339,7
+332,7
@@
class CiviUnitTestCase extends PHPUnit\Framework\TestCase {
}
// Get and save a connection to the database
- $this->
_dbconn = $this->getConnection();
+ $this->
getConnection(); /* NOTE: Side-effects! */
// reload database before each test
// $this->_populateDB();