CRM-17860 - CiviTester - Reset extensions when reinstalling schema.
authorTim Otten <totten@civicrm.org>
Tue, 9 Feb 2016 02:59:26 +0000 (18:59 -0800)
committerTim 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

index fbf3e00a1f077f815030fe52a980da8d09ed4c0f..89e68acd9f1b5273da1189d1584a1a9b7131e164 100644 (file)
@@ -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');