resourceloader: Add coverage for DerivativeRLContext::getDirection inheritance
authorTimo Tijhof <krinklemail@gmail.com>
Mon, 10 Jun 2019 14:25:24 +0000 (15:25 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Mon, 10 Jun 2019 14:25:24 +0000 (15:25 +0100)
This was the only case not covered, possibly due to a copy-paste
mistake when writing the test.

Change-Id: I1d01a1191da15162f301cea4082c0f1f481cece7

tests/phpunit/includes/resourceloader/DerivativeResourceLoaderContextTest.php

index c210061..df9ddee 100644 (file)
@@ -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' );