Skip to content

Commit 6bf26ab

Browse files
committed
AC-953: Create unit test for Magento2\Less\TypeSelectorConcatenationSniff check
1 parent d4dc9e2 commit 6bf26ab

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed
Lines changed: 25 additions & 0 deletions
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+
}
Lines changed: 28 additions & 0 deletions
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)