From: Timo Tijhof Date: Mon, 10 Jun 2019 14:25:24 +0000 (+0100) Subject: resourceloader: Add coverage for DerivativeRLContext::getDirection inheritance X-Git-Tag: 1.34.0-rc.0~1475^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=54e86490419132b85f70e1e2b590b87f5bd3555d;p=lhc%2Fweb%2Fwiklou.git resourceloader: Add coverage for DerivativeRLContext::getDirection inheritance This was the only case not covered, possibly due to a copy-paste mistake when writing the test. Change-Id: I1d01a1191da15162f301cea4082c0f1f481cece7 --- diff --git a/tests/phpunit/includes/resourceloader/DerivativeResourceLoaderContextTest.php b/tests/phpunit/includes/resourceloader/DerivativeResourceLoaderContextTest.php index c210061191..df9ddee8ea 100644 --- a/tests/phpunit/includes/resourceloader/DerivativeResourceLoaderContextTest.php +++ b/tests/phpunit/includes/resourceloader/DerivativeResourceLoaderContextTest.php @@ -30,6 +30,7 @@ class DerivativeResourceLoaderContextTest extends PHPUnit\Framework\TestCase { public function testChangeLanguageAndDirection() { $derived = new DerivativeResourceLoaderContext( self::makeContext() ); $this->assertSame( $derived->getLanguage(), 'qqx', 'inherit from parent' ); + $this->assertSame( $derived->getDirection(), 'ltr', 'inherit from parent' ); $derived->setLanguage( 'nl' ); $this->assertSame( $derived->getLanguage(), 'nl' );