From 2eb8e74ac9229c1a965a88ec291a3d5df4c9398f Mon Sep 17 00:00:00 2001 From: Altamash Shaikh Date: Mon, 28 Oct 2024 07:11:21 +0530 Subject: [PATCH] Fixes failing test --- tests/Integration/Importers/Actions/RecordImporterTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Integration/Importers/Actions/RecordImporterTest.php b/tests/Integration/Importers/Actions/RecordImporterTest.php index 0674f404..32b44243 100644 --- a/tests/Integration/Importers/Actions/RecordImporterTest.php +++ b/tests/Integration/Importers/Actions/RecordImporterTest.php @@ -23,6 +23,8 @@ class RecordImporterTest extends BaseRecordImporterTest public function setUp(): void { parent::setUp(); + // Ensure plugin is activated, otherwise adding a site with this type will fail + \Piwik\Plugin\Manager::getInstance()->activatePlugin('MobileAppMeasurable'); Fixture::createWebsite('2012-02-02 03:04:04', 1, 'mobile app', \false, 0, null, null, null, Type::ID); } public function getTestDir()