diff --git a/Magento2/Tests/Less/ImportantPropertyUnitTest.less b/Magento2/Tests/Less/ImportantPropertyUnitTest.less new file mode 100644 index 00000000..0a0783ba --- /dev/null +++ b/Magento2/Tests/Less/ImportantPropertyUnitTest.less @@ -0,0 +1,12 @@ +// /** +// * Copyright © Magento, Inc. All rights reserved. +// * See COPYING.txt for license details. +// */ + +.correct-important-property { + background-color: green !important; +} + +.incorrect-important-property { + background-color: red!important; +} diff --git a/Magento2/Tests/Less/ImportantPropertyUnitTest.php b/Magento2/Tests/Less/ImportantPropertyUnitTest.php new file mode 100644 index 00000000..c3044415 --- /dev/null +++ b/Magento2/Tests/Less/ImportantPropertyUnitTest.php @@ -0,0 +1,27 @@ + 1 + ]; + } + + /** + * @inheritdoc + */ + public function getWarningList() + { + return []; + } +}