Skip to content

Commit 4b2ca82

Browse files
[Imported] AC-947: Create unit test for Magento2\Less\IndentationSniff check (#36)
https://jira.corp.magento.com/browse/AC-947
1 parent e71dbf8 commit 4b2ca82

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// /**
2+
// * Copyright © Magento, Inc. All rights reserved.
3+
// * See COPYING.txt for license details.
4+
// */
5+
6+
.nav {
7+
background: green;
8+
.nav-item {
9+
background: green;
10+
}
11+
}
12+
13+
.bar {
14+
background: red;
15+
.bar-item {
16+
background: red;
17+
.bar-item-child {
18+
background: red;
19+
}
20+
}
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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 IndentationUnitTest extends AbstractLessSniffUnitTestCase
9+
{
10+
/**
11+
* @inheritdoc
12+
*/
13+
public function getErrorList()
14+
{
15+
return [
16+
14 => 1,
17+
15 => 1,
18+
16 => 1,
19+
17 => 1,
20+
18 => 1,
21+
19 => 1,
22+
20 => 1
23+
];
24+
}
25+
26+
/**
27+
* @inheritdoc
28+
*/
29+
public function getWarningList()
30+
{
31+
return [];
32+
}
33+
}

0 commit comments

Comments
 (0)