-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added test for PluginReferenceProvider
- Loading branch information
Showing
3 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...reference/xml/DisabledPluginReferenceRegistrar/disabledPluginNameMustHaveReference/di.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> | ||
<type name="Magento\Theme\Block\Html\Topmenu"> | ||
<plugin name="catalogTopmenu<caret>" disabled="true"/> | ||
</type> | ||
</config> |
17 changes: 17 additions & 0 deletions
17
...s/com/magento/idea/magento2plugin/reference/xml/DisabledPluginReferenceRegistrarTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
package com.magento.idea.magento2plugin.reference.xml; | ||
|
||
import com.magento.idea.magento2plugin.magento.files.ModuleDiXml; | ||
|
||
public class DisabledPluginReferenceRegistrarTest extends ReferenceXmlFixtureTestCase { | ||
public void testDisabledPluginNameMustHaveReference() { | ||
String filePath = this.getFixturePath(ModuleDiXml.FILE_NAME); | ||
myFixture.configureByFile(filePath); | ||
|
||
assertHasReferenceToXmlAttributeValue("catalogTopmenu"); | ||
} | ||
} |