Skip to content

Commit a05a21f

Browse files
author
Vitaliy Boyko
committed
Static fixes
1 parent db87c3a commit a05a21f

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

src/com/magento/idea/magento2plugin/actions/generation/generator/CustomerEavAttributePatchGenerator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ private String getFormsForAttribute(final CustomerEntityData customerEntityData)
8888

8989
if (customerEntityData.isUseInAdminhtmlCheckoutForm()) {
9090
usedInForms.add(
91-
"'" + CustomerForm.ADMINHTML_CHECKOUT.getFormCode() + "'"
91+
"'" + CustomerForm.ADMINHTML_CHECKOUT.getFormCode() + "'"
9292
);
9393
}
9494

tests/com/magento/idea/magento2plugin/actions/generation/generator/CustomerAttributeSetupPatchGeneratorTest.java

+12-3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@
1717

1818
public class CustomerAttributeSetupPatchGeneratorTest extends BaseGeneratorTestCase {
1919

20-
private final static String MODULE_NAME = "Foo_Bar";
20+
private static final String MODULE_NAME = "Foo_Bar";
2121

22+
/**
23+
* Test generating the customer attribute data patch.
24+
*/
2225
public void testGenerateMultiselectAttributeDataPatch() {
2326
final Project project = myFixture.getProject();
2427

@@ -45,11 +48,17 @@ public void testGenerateMultiselectAttributeDataPatch() {
4548

4649
final CustomerEavAttributePatchGenerator setupPatchGenerator =
4750
new CustomerEavAttributePatchGenerator(customerEntityData, project);
48-
final PsiFile dataPatchFile = setupPatchGenerator.generate("testGenerateMultiselectAttributeDataPatch");
51+
final PsiFile dataPatchFile = setupPatchGenerator.generate(
52+
"testGenerateMultiselectAttributeDataPatch"
53+
);
4954

5055
final String filePatch = this.getFixturePath("AddMultiselectTestCustomerAttribute.php");
5156
final PsiFile expectedFile = myFixture.configureByFile(filePatch);
5257

53-
assertGeneratedFileIsCorrect(expectedFile, "src/app/code/Foo/Bar/Setup/Patch/Data", dataPatchFile);
58+
assertGeneratedFileIsCorrect(
59+
expectedFile,
60+
"src/app/code/Foo/Bar/Setup/Patch/Data",
61+
dataPatchFile
62+
);
5463
}
5564
}

0 commit comments

Comments
 (0)