Skip to content

Commit 1ada9db

Browse files
authored
Merge pull request #9 from integer-net/release/1.1.1
Release/1.1.1
2 parents dc4f099 + 4d9f37a commit 1ada9db

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1313
### Added
1414
- Adds frontend test coverage for global custom layout updates
1515
- 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.
16+
17+
## 1.1.1 - 2020-05-08
18+
### Added
19+
- Adds module registration test (registration.php coverage)
20+
- Adds travis config for tags/releases

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "integer-net/magento2-global-custom-layout",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"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",
55
"authors": [
66
{

tests/Integration/ModuleTest.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
namespace IntegerNet\GlobalCustomLayout\Test\Integration;
55

66
use Magento\Framework\App\ObjectManager;
7+
use Magento\Framework\Component\ComponentRegistrar;
78
use Magento\Framework\Module\ModuleList;
89
use PHPUnit\Framework\TestCase;
910

@@ -21,6 +22,13 @@ protected function setUp()
2122
$this->objectManager = ObjectManager::getInstance();
2223
}
2324

25+
public function testModuleIsRegistered()
26+
{
27+
$registrar = new ComponentRegistrar();
28+
$paths = $registrar->getPaths(ComponentRegistrar::MODULE);
29+
$this->assertArrayHasKey(self::MODULE_NAME, $paths);
30+
}
31+
2432
public function testModuleIsActive()
2533
{
2634
/** @var ModuleList $moduleList */
@@ -30,4 +38,4 @@ public function testModuleIsActive()
3038
sprintf('The module %s should be enabled', self::MODULE_NAME)
3139
);
3240
}
33-
}
41+
}

tests/Integration/phpunit.xml.dist

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
<filter>
2323
<whitelist addUncoveredFilesFromWhiteList="true">
2424
<directory suffix=".php">../../../vendor/integer-net/*/src</directory>
25-
<exclude>
26-
<file>../../../vendor/integer-net/*/src/registration.php</file>
27-
</exclude>
2825
</whitelist>
2926
</filter>
3027
<!-- PHP INI settings and constants definition -->

0 commit comments

Comments
 (0)