Skip to content

Commit c1aa6c5

Browse files
authored
Merge pull request #43 from magento-commerce/imported-magento-magento-coding-standard-247
[Imported] AC-953: Create unit test for Magento2\Less\TypeSelectorConcatenationSniff check
2 parents 72523cc + 4bc13c9 commit c1aa6c5

File tree

2 files changed

+53
-0
lines changed

2 files changed

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

0 commit comments

Comments
 (0)