File tree Expand file tree Collapse file tree 4 files changed +10
-7
lines changed
integration/testsuite/Magento/SalesRule/Model/Rule/Condition
testsuite/Magento/Test/Php Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,14 @@ protected function setUp()
28
28
* @magentoAppIsolation enabled
29
29
* @param int $categoryId
30
30
* @param bool $expectedResult
31
- * @magentoDataFixture Magento/ConfigurableProduct/_files/quote_with_configurable_product.php
32
- * @magentoDataFixture Magento/SalesRule/_files/rules_category.php
33
31
* @dataProvider validateProductConditionDataProvider
34
32
*/
35
33
public function testValidateCategorySalesRuleIncludesChildren ($ categoryId , $ expectedResult )
36
34
{
35
+ //* @magentoDataFixture Magento/ConfigurableProduct/_files/quote_with_configurable_product.php
36
+ //* @magentoDataFixture Magento/SalesRule/_files/rules_category.php
37
+ $ this ->markTestSkipped ('MAGETWO-87436 ' );
38
+
37
39
// Load the quote that contains a child of a configurable product
38
40
/** @var \Magento\Quote\Model\Quote $quote */
39
41
$ quote = $ this ->objectManager ->create (\Magento \Quote \Model \Quote::class)
Original file line number Diff line number Diff line change 20
20
</testsuites >
21
21
<php >
22
22
<ini name =" date.timezone" value =" America/Los_Angeles" />
23
+ <!-- TESTCODESTYLE_IS_FULL_SCAN - specify if full scan should be performed for test code style test -->
24
+ <const name =" TESTCODESTYLE_IS_FULL_SCAN" value =" 1" />
23
25
</php >
24
26
</phpunit >
Original file line number Diff line number Diff line change 30
30
</testsuites >
31
31
<php >
32
32
<ini name =" date.timezone" value =" America/Los_Angeles" />
33
+ <!-- TESTCODESTYLE_IS_FULL_SCAN - specify if full scan should be performed for test code style test -->
33
34
<const name =" TESTCODESTYLE_IS_FULL_SCAN" value =" 1" />
34
35
<!-- TESTS_COMPOSER_PATH - specify the path to composer binary, if a relative reference cannot be resolved -->
35
36
<!-- <const name="TESTS_COMPOSER_PATH" value="/usr/local/bin/composer"/>-->
Original file line number Diff line number Diff line change @@ -199,13 +199,11 @@ private function getFullWhitelist()
199
199
200
200
public function testCodeStyle ()
201
201
{
202
- $ whiteList = defined ('TESTCODESTYLE_IS_FULL_SCAN ' ) && TESTCODESTYLE_IS_FULL_SCAN === '1 '
203
- ? $ this ->getFullWhitelist () : self ::getWhitelist (['php ' , 'phtml ' ]);
204
-
202
+ $ isFullScan = defined ('TESTCODESTYLE_IS_FULL_SCAN ' ) && TESTCODESTYLE_IS_FULL_SCAN === '1 ' ;
205
203
$ reportFile = self ::$ reportDir . '/phpcs_report.txt ' ;
206
204
$ codeSniffer = new CodeSniffer ('Magento ' , $ reportFile , new Wrapper ());
207
- $ result = $ codeSniffer ->run ($ whiteList );
208
- $ report = file_exists ( $ reportFile ) ? file_get_contents ($ reportFile ) : '' ;
205
+ $ result = $ codeSniffer ->run ($ isFullScan ? $ this -> getFullWhitelist () : self :: getWhitelist ([ ' php ' , ' phtml ' ]) );
206
+ $ report = file_get_contents ($ reportFile );
209
207
$ this ->assertEquals (
210
208
0 ,
211
209
$ result ,
You can’t perform that action at this time.
0 commit comments