Skip to content

Commit e83a012

Browse files
authored
Merge pull request #33 from magento-commerce/imported-magento-magento-coding-standard-236
[Imported] AC-940: Create unit test for Magento2\Less\BracesFormattingSniff check
2 parents efc5f37 + a4538fe commit e83a012

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

Diff for: Magento2/Tests/Less/BracesFormattingUnitTest.less

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// /**
2+
// * Copyright © Magento, Inc. All rights reserved.
3+
// * See COPYING.txt for license details.
4+
// */
5+
6+
.my{
7+
some: 'stuff';
8+
}
9+
.foo {
10+
anything: 'else';
11+
}
12+
13+
.bar {
14+
#bar .baz();
15+
16+
}

Diff for: Magento2/Tests/Less/BracesFormattingUnitTest.php

+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 BracesFormattingUnitTest extends AbstractLessSniffUnitTestCase
9+
{
10+
/**
11+
* @inheritdoc
12+
*/
13+
public function getErrorList()
14+
{
15+
return [
16+
6 => 1,
17+
16 => 1,
18+
];
19+
}
20+
21+
/**
22+
* @inheritdoc
23+
*/
24+
public function getWarningList()
25+
{
26+
return [];
27+
}
28+
}

0 commit comments

Comments
 (0)