resourceloader: Improve test cases for DerivativeResourceLoaderContext
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 27 Mar 2019 19:47:05 +0000 (19:47 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Wed, 27 Mar 2019 19:47:05 +0000 (19:47 +0000)
commitb4ad29cd838ed9d2120126592c22acb5d6487f6e
tree0ba1c806e245c7349429f86503ef5da9ec17d30a
parent963f1c560c735dbc772de7774772a59e67da1d91
resourceloader: Improve test cases for DerivativeResourceLoaderContext

Make the methods more descriptive of the stories and use cases
they cover, and less method-oriented given they don't only
just test a getter or setter anyway (and doing so is arguably
not useful).

Also fold the "testGetInherited" case into the specific ones,
add additional assertions for inheritence that was previously
not tested (specifically, for getVersion and getRaw).

Change-Id: I01c72112e517e66cea5ecf9e2ab53b9039fb99bb
tests/phpunit/includes/resourceloader/DerivativeResourceLoaderContextTest.php