dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Schema is not PostgreSQL connection parameter"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
LessFileCompilationTest.php
diff --git
a/tests/phpunit/LessFileCompilationTest.php
b/tests/phpunit/LessFileCompilationTest.php
index
62157d2
..
71e0f4b
100644
(file)
--- a/
tests/phpunit/LessFileCompilationTest.php
+++ b/
tests/phpunit/LessFileCompilationTest.php
@@
-6,7
+6,7
@@
* @see https://github.com/sebastianbergmann/phpunit/blob/master/src/Extensions/PhptTestCase.php
* @author Sam Smith <samsmith@wikimedia.org>
*/
* @see https://github.com/sebastianbergmann/phpunit/blob/master/src/Extensions/PhptTestCase.php
* @author Sam Smith <samsmith@wikimedia.org>
*/
-class LessFileCompilationTest extends
MediaWiki
TestCase {
+class LessFileCompilationTest extends
ResourceLoader
TestCase {
/**
* @var string $file
/**
* @var string $file
@@
-38,7
+38,13
@@
class LessFileCompilationTest extends MediaWikiTestCase {
"$thisString must refer to a readable file"
);
"$thisString must refer to a readable file"
);
- $compiler = ResourceLoader::getLessCompiler( RequestContext::getMain()->getConfig() );
+ $rlContext = static::getResourceLoaderContext();
+
+ // Bleh
+ $method = new ReflectionMethod( $this->module, 'getLessCompiler' );
+ $method->setAccessible( true );
+ $compiler = $method->invoke( $this->module, $rlContext );
+
$this->assertNotNull( $compiler->compileFile( $this->file ) );
}
$this->assertNotNull( $compiler->compileFile( $this->file ) );
}