Skip to content

Commit faddd30

Browse files
AC-949: Create unit test for Magento2\Less\PropertiesSortingSniff check (#37)
https://jira.corp.magento.com/browse/AC-949
1 parent 0759da9 commit faddd30

File tree

2 files changed

+56
-0
lines changed

2 files changed

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

0 commit comments

Comments
 (0)