Skip to content

Commit

Permalink
add 2 new test templates for stor annotation and change preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
jalogut committed Mar 14, 2018
1 parent 18f7fdf commit 6940836
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
18 changes: 15 additions & 3 deletions Preferences/templates/StmpflMagento2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@
</template>
<template name="2magento phpcs ignore block" value="//@codingStandardsIgnoreStart&#10;$SELECTION$&#10;//@codingStandardsIgnoreEnd" description="" toReformat="false" toShortenFQNames="true">
<context>
<option name="CSS" value="true" />
<option name="HTML" value="true" />
<option name="XML" value="true" />
<option name="CSS" value="true" />
<option name="JAVA_SCRIPT" value="true" />
<option name="PHP" value="true" />
<option name="SQL" value="true" />
<option name="XML" value="true" />
<option name="PHP" value="true" />
</context>
</template>
<template name="2magento phpcs ignore line" value="//@codingStandardsIgnoreLine" description="" toReformat="false" toShortenFQNames="true">
Expand Down Expand Up @@ -662,6 +662,18 @@
<option name="PHP" value="true" />
</context>
</template>
<template name="2magento test annotation frontend store" value="/**&#10; * @magentoAppIsolation enabled&#10; * @magentoAppArea frontend&#10; * @magentoConfigFixture current_store general/locale/code de_CH&#10; */" toReformat="false" toShortenFQNames="true">
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="2magento test change preference" value="protected function setUp()&#10;{&#10; parent::setUp();&#10; \Magento\TestFramework\Helper\Bootstrap::getObjectManager()-&gt;configure(&#10; ['preferences' =&gt; [$for$::class =&gt; $type$::class]]&#10; );&#10;}" toReformat="false" toShortenFQNames="true">
<variable name="for" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="type" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="xsi array" value="xsi:type=&quot;array&quot;" description="xsi:type=&quot;array&quot;" toReformat="false" toShortenFQNames="true">
<context>
<option name="XML" value="true" />
Expand Down
2 changes: 2 additions & 0 deletions docs/liveTemplates.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@
* 2magento test integration class
* 2magento test fixture function
* 2magento test dataProvider function
* 2magento test change preference
* 2magento test annotation frontend store
* 2magento customer add attribute
* 2magento setup order quote field
* 2magento setup uninstall
Expand Down

0 comments on commit 6940836

Please sign in to comment.