resourceloader: Add test case for ResourceLoader::getLessCompiler
authorTimo Tijhof <krinklemail@gmail.com>
Sat, 19 May 2018 18:37:04 +0000 (20:37 +0200)
committerKrinkle <krinklemail@gmail.com>
Sat, 19 May 2018 23:06:54 +0000 (23:06 +0000)
commitf4d1039a2017499bd8773dd319ae88040ecbd1f2
treeff22199ae9926beb38066d55e7785bf78e3d3de9
parent399d9c24a85b7e108ccfc51140af225c458f00b9
resourceloader: Add test case for ResourceLoader::getLessCompiler

This was previously covered implicitly by an unrelated test.
Change that test (dependency.less) to use ../ to access the file
directly so that that test case is only about tracking dependencies
and testing the parser.

Then, add a second case that tests the use of import dirs.

Bug: T140807
Change-Id: Ie85abffe313922c03b3e146422f36b1d6a79743d
tests/phpunit/data/less/module/dependency.less
tests/phpunit/data/less/module/use-import-dir.less [new file with mode: 0644]
tests/phpunit/includes/resourceloader/ResourceLoaderTest.php