From 3ebe3979890597314f2405b64a6f27f6e904822b Mon Sep 17 00:00:00 2001 From: Marc Ginesta Date: Tue, 31 Aug 2021 15:27:21 +0200 Subject: [PATCH] AC-949: Create unit test for Magento2\Less\PropertiesSortingSniff check --- .../Tests/Less/PropertiesSortingUnitTest.less | 28 +++++++++++++++++++ .../Tests/Less/PropertiesSortingUnitTest.php | 28 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 Magento2/Tests/Less/PropertiesSortingUnitTest.less create mode 100644 Magento2/Tests/Less/PropertiesSortingUnitTest.php diff --git a/Magento2/Tests/Less/PropertiesSortingUnitTest.less b/Magento2/Tests/Less/PropertiesSortingUnitTest.less new file mode 100644 index 00000000..9e67fff8 --- /dev/null +++ b/Magento2/Tests/Less/PropertiesSortingUnitTest.less @@ -0,0 +1,28 @@ +// /** +// * Copyright © Magento, Inc. All rights reserved. +// * See COPYING.txt for license details. +// */ + +.menu { + color: white; + text-align: center; + background-color: red; + + .item { + background-color: green; + color: white; + text-align: center; + } +} + +.nav { + background-color: green; + color: white; + text-align: center; + + .item { + color: white; + text-align: center; + background-color: red; + } +} diff --git a/Magento2/Tests/Less/PropertiesSortingUnitTest.php b/Magento2/Tests/Less/PropertiesSortingUnitTest.php new file mode 100644 index 00000000..e32561e5 --- /dev/null +++ b/Magento2/Tests/Less/PropertiesSortingUnitTest.php @@ -0,0 +1,28 @@ + 1, + 26 => 1 + ]; + } + + /** + * @inheritdoc + */ + public function getWarningList() + { + return []; + } +}