diff --git a/CHANGELOG.md b/CHANGELOG.md index ef29b2c..56eb819 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,3 +13,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Added - Adds frontend test coverage for global custom layout updates - Fixes [#7](https://github.com/integer-net/magento2-global-custom-layout/issues/7) where layout handles were not merged in Product and Page Plugins' `afterFetchAvailableFiles()` method. + +## 1.1.1 - 2020-05-08 +### Added +- Adds module registration test (registration.php coverage) +- Adds travis config for tags/releases diff --git a/composer.json b/composer.json index acc35e5..b268128 100755 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "integer-net/magento2-global-custom-layout", - "version": "1.1.0", + "version": "1.1.1", "description": "Module for Magento 2 that allows you to add global layout update files to be selected from admin, by using '0' instead of an entity_id", "authors": [ { diff --git a/tests/Integration/ModuleTest.php b/tests/Integration/ModuleTest.php index c068ca6..2c4a739 100755 --- a/tests/Integration/ModuleTest.php +++ b/tests/Integration/ModuleTest.php @@ -4,6 +4,7 @@ namespace IntegerNet\GlobalCustomLayout\Test\Integration; use Magento\Framework\App\ObjectManager; +use Magento\Framework\Component\ComponentRegistrar; use Magento\Framework\Module\ModuleList; use PHPUnit\Framework\TestCase; @@ -21,6 +22,13 @@ protected function setUp() $this->objectManager = ObjectManager::getInstance(); } + public function testModuleIsRegistered() + { + $registrar = new ComponentRegistrar(); + $paths = $registrar->getPaths(ComponentRegistrar::MODULE); + $this->assertArrayHasKey(self::MODULE_NAME, $paths); + } + public function testModuleIsActive() { /** @var ModuleList $moduleList */ @@ -30,4 +38,4 @@ public function testModuleIsActive() sprintf('The module %s should be enabled', self::MODULE_NAME) ); } -} \ No newline at end of file +} diff --git a/tests/Integration/phpunit.xml.dist b/tests/Integration/phpunit.xml.dist index 87e9d8f..157159f 100755 --- a/tests/Integration/phpunit.xml.dist +++ b/tests/Integration/phpunit.xml.dist @@ -22,9 +22,6 @@ ../../../vendor/integer-net/*/src - - ../../../vendor/integer-net/*/src/registration.php -