Skip to content

Commit 1358921

Browse files
author
Vitaliy Boyko
committed
Fixed completion test
1 parent aead514 commit 1358921

File tree

8 files changed

+7
-8
lines changed

8 files changed

+7
-8
lines changed

Diff for: src/com/magento/idea/magento2plugin/indexes/IndexManager.java

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import com.magento.idea.magento2plugin.stubs.indexes.xml.AclResourceIndex;
2828
import com.magento.idea.magento2plugin.stubs.indexes.xml.MenuIndex;
2929
import com.magento.idea.magento2plugin.stubs.indexes.xml.PhpClassNameIndex;
30+
import com.magento.idea.magento2plugin.stubs.indexes.xml.UIComponentIndex;
3031

3132
@SuppressWarnings({"PMD.ClassNamingConventions", "PMD.UseUtilityClass"})
3233
public class IndexManager {
@@ -44,6 +45,7 @@ public static void manualReindex() {
4445
// layouts
4546
BlockNameIndex.KEY,
4647
ContainerNameIndex.KEY,
48+
UIComponentIndex.KEY,
4749
// events
4850
EventNameIndex.KEY,
4951
EventObserverIndex.KEY,

Diff for: testData/completion/xml/LayoutUIComponentCompletionRegistrar/uIComponentMustHaveCompletion/default.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
44
<body>
5-
<referenceContainer name="after.body.start">
6-
<uiComponent name="test_index_i<caret>"/>
5+
<referenceContainer name="content">
6+
<uiComponent name="recently_vie<caret>"/>
77
</referenceContainer>
88
</body>
99
</page>

Diff for: testData/project/magento2/vendor/magento/module-catalog/view/frontend/layout/test_index_index.xml

-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,5 @@
88
<container name="test_index_index_container2">
99
<block name="test_index_index_block2" />
1010
</container>
11-
<container name="test_index_index_container3">
12-
<uiComponent name="test_index_index" />
13-
</container>
1411
</body>
1512
</page>

Diff for: tests/com/magento/idea/magento2plugin/completion/xml/LayoutContainerCompletionRegistrarTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class LayoutContainerCompletionRegistrarTest extends CompletionXmlFixture
1313
* The `name` attribute of the `referenceContainer` tag in layout XML must
1414
* have completion based on `name` attribute of `container` tags.
1515
*/
16-
public void testXReferenceContainerMustHaveCompletion() {
16+
public void testReferenceContainerMustHaveCompletion() {
1717
final String filePath = this.getFixturePath(LayoutXml.DEFAULT_FILENAME);
1818
myFixture.configureByFile(filePath);
1919

Diff for: tests/com/magento/idea/magento2plugin/completion/xml/LayoutUIComponentCompletionRegistrarTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ public void testUIComponentMustHaveCompletion() {
1313
myFixture.configureByFile(filePath);
1414

1515
assertCompletionContains(filePath,
16-
"test_index_i",
17-
"test_index_index"
16+
"recently_viewed",
17+
"recently_viewed_2"
1818
);
1919
}
2020
}

0 commit comments

Comments
 (0)