Skip to content

Commit 9355a1e

Browse files
authored
Merge pull request #46 from magento-commerce/imported-magento-magento-coding-standard-249
[Imported] AC-944: Create unit test for CombinatorIndentationSniffCheck
2 parents be0c0bc + a728d6e commit 9355a1e

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// /**
2+
// * Copyright © Magento, Inc. All rights reserved.
3+
// * See COPYING.txt for license details.
4+
// */
5+
6+
.nav+.bar {
7+
color: @bar__color;
8+
}
9+
10+
.nav +.foo {
11+
color: @bar__color;
12+
}
13+
14+
.nav+ .baz {
15+
color: @bar__color;
16+
}
17+
18+
.nav + .qux {
19+
color: @bar__color;
20+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
/**
3+
* Copyright © Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
namespace Magento2\Tests\Less;
7+
8+
class CombinatorIndentationUnitTest extends AbstractLessSniffUnitTestCase
9+
{
10+
/**
11+
* @inheritdoc
12+
*/
13+
public function getErrorList()
14+
{
15+
return [
16+
6 => 1,
17+
10 => 1,
18+
14 => 1,
19+
];
20+
}
21+
22+
/**
23+
* @inheritdoc
24+
*/
25+
public function getWarningList()
26+
{
27+
return [];
28+
}
29+
}

0 commit comments

Comments
 (0)