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:
0d703d4
)
CRM-17860 - CiviTester - Reset extensions when reinstalling schema.
author
Tim Otten
<totten@civicrm.org>
Tue, 9 Feb 2016 02:59:26 +0000
(18:59 -0800)
committer
Tim Otten
<totten@civicrm.org>
Mon, 15 Feb 2016 22:23:50 +0000
(14:23 -0800)
This addresses a use-case where you have multiple extensions and run the
test-suites back-to-back.
tests/phpunit/CiviTest/CiviTester.php
patch
|
blob
|
blame
|
history
diff --git
a/tests/phpunit/CiviTest/CiviTester.php
b/tests/phpunit/CiviTest/CiviTester.php
index fbf3e00a1f077f815030fe52a980da8d09ed4c0f..89e68acd9f1b5273da1189d1584a1a9b7131e164 100644
(file)
--- a/
tests/phpunit/CiviTest/CiviTester.php
+++ b/
tests/phpunit/CiviTest/CiviTester.php
@@
-80,6
+80,7
@@
class CiviTester {
CiviTester::schema()->dropAll();
}, 'msg-drop')
->sqlFile($civiRoot . "/sql/civicrm.mysql")
+ ->sql("DELETE FROM civicrm_extension")
->callback(function ($ctx) {
CiviTester::data()->populate();
}, 'populate');