From 54e86490419132b85f70e1e2b590b87f5bd3555d Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Mon, 10 Jun 2019 15:25:24 +0100 Subject: [PATCH] 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 --- .../resourceloader/DerivativeResourceLoaderContextTest.php | 1 + 1 file changed, 1 insertion(+) 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' ); -- 2.20.1