From ee7babd002daf16f55a1de6bfebec9b417eb0908 Mon Sep 17 00:00:00 2001 From: Jisse Reitsma Date: Mon, 19 Aug 2024 12:17:30 +0200 Subject: [PATCH] Add basic module test --- Test/Integration/ModuleTest.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Test/Integration/ModuleTest.php diff --git a/Test/Integration/ModuleTest.php b/Test/Integration/ModuleTest.php new file mode 100644 index 0000000..af630b4 --- /dev/null +++ b/Test/Integration/ModuleTest.php @@ -0,0 +1,24 @@ +get(ComponentRegistrar::class); + $modulePath = $componentRegistrar->getPath('module', 'Buckaroo_HyvaCheckout'); + $this->assertTrue(is_dir($modulePath)); + } + + public function testIfModuleIsEnabled() + { + $moduleList = ObjectManager::getInstance()->get(ModuleListInterface::class); + $module = $moduleList->getOne('Buckaroo_HyvaCheckout'); + $this->assertNotEmpty($module); + } +}