X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2FLessFileCompilationTest.php;h=5e1f1a9666fb0847008efca7fc526d1a9259ae65;hp=eec02edc6491dbcfe5284f0d3f3f528c6b8822cc;hb=74426f3cf796b149f1ae445e41815bbe148640b2;hpb=1f0857f26f400e484041ba4c55eba6ddd934c5fe diff --git a/tests/phpunit/LessFileCompilationTest.php b/tests/phpunit/LessFileCompilationTest.php index eec02edc64..5e1f1a9666 100644 --- a/tests/phpunit/LessFileCompilationTest.php +++ b/tests/phpunit/LessFileCompilationTest.php @@ -41,11 +41,9 @@ class LessFileCompilationTest extends ResourceLoaderTestCase { $rlContext = $this->getResourceLoaderContext(); // Bleh - $method = new ReflectionMethod( $this->module, 'getLessCompiler' ); + $method = new ReflectionMethod( $this->module, 'compileLessFile' ); $method->setAccessible( true ); - $compiler = $method->invoke( $this->module, $rlContext ); - - $this->assertNotNull( $compiler->parseFile( $this->file )->getCss() ); + $this->assertNotNull( $method->invoke( $this->module, $this->file, $rlContext ) ); } public function toString() {