3 class ComposerLockTest
extends MediaWikiTestCase
{
7 public function setUp() {
10 $this->lock
= "$IP/tests/phpunit/data/composer/composer.lock";
14 * @covers ComposerLock::getHash
16 public function testGetHash() {
17 $lock = new ComposerLock( $this->lock
);
18 $this->assertEquals( 'a3bb80b0ac4c4a31e52574d48c032923', $lock->getHash() );
22 * @covers ComposerLock::getInstalledDependencies
24 public function testGetInstalledDependencies() {
25 $lock = new ComposerLock( $this->lock
);
26 $this->assertArrayEquals( array(
27 'wikimedia/cdb' => array(
31 'cssjanus/cssjanus' => array(
35 'leafo/lessphp' => array(
43 'oojs/oojs-ui' => array(
47 'composer/installers' => array(
48 'version' => '1.0.19',
49 'type' => 'composer-installer',
51 'mediawiki/translate' => array(
52 'version' => '2014.12',
53 'type' => 'mediawiki-extension',
55 'mediawiki/universal-language-selector' => array(
56 'version' => '2014.12',
57 'type' => 'mediawiki-extension',
59 ), $lock->getInstalledDependencies(), false, true );