Skip to content

Commit 72523cc

Browse files
authored
Merge pull request #42 from magento-commerce/imported-magento-magento-coding-standard-252
[Imported] AC-955: Create unit test for Magento2\Less\VariablesSniff check
2 parents e4969eb + 6118753 commit 72523cc

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// /**
2+
// * Copyright © Magento, Inc. All rights reserved.
3+
// * See COPYING.txt for license details.
4+
// */
5+
6+
.nav {
7+
random: 'stuff';
8+
}
9+
10+
@INCORRECT-PROPERTY__color: red;
11+
12+
//
13+
// Variables not correctly located
14+
// _____________________________________________
15+
16+
// Colors
17+
@btn__color: red;
+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 VariablesUnitTest extends AbstractLessSniffUnitTestCase
9+
{
10+
/**
11+
* @inheritdoc
12+
*/
13+
public function getErrorList()
14+
{
15+
return [
16+
10 => 2,
17+
17 => 1
18+
];
19+
}
20+
21+
/**
22+
* @inheritdoc
23+
*/
24+
public function getWarningList()
25+
{
26+
return [];
27+
}
28+
}

0 commit comments

Comments
 (0)