diff --git a/testData/completion/xml/PhpServiceMethodCompletionRegistrar/webApiXmlMustHaveCompletion/webapi.xml b/testData/completion/xml/PhpServiceMethodCompletionRegistrar/webApiXmlMustHaveCompletion/webapi.xml new file mode 100644 index 000000000..5e8e7cf5c --- /dev/null +++ b/testData/completion/xml/PhpServiceMethodCompletionRegistrar/webApiXmlMustHaveCompletion/webapi.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + diff --git a/tests/com/magento/idea/magento2plugin/completion/xml/PhpServiceMethodCompletionRegistrarTest.java b/tests/com/magento/idea/magento2plugin/completion/xml/PhpServiceMethodCompletionRegistrarTest.java new file mode 100644 index 000000000..7cbab9509 --- /dev/null +++ b/tests/com/magento/idea/magento2plugin/completion/xml/PhpServiceMethodCompletionRegistrarTest.java @@ -0,0 +1,19 @@ +/** + * Copyright © Magento, Inc. All rights reserved. + * See COPYING.txt for license details. + */ + +package com.magento.idea.magento2plugin.completion.xml; + +public class PhpServiceMethodCompletionRegistrarTest extends CompletionXmlFixtureTestCase { + + /** + * Tests for the completion in `method` attribute of the `service` tag in webapi.xml. + */ + public void testWebApiXmlMustHaveCompletion() { + final String filePath = this.getFixturePath("webapi.xml"); + myFixture.configureByFile(filePath); + + assertCompletionContains(filePath, "save"); + } +}