Skip to content

Commit 4c96a5a

Browse files
committed
tests: update tests
1 parent 805cc77 commit 4c96a5a

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

tests/unit/ModuleLoaderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,11 @@ public function testCanLoadAllVersionsByContraint()
7979

8080
// tests for version >=1.0.0
8181
$modules = $this->loader->loadAllByArchiveNameAndConstraint('composer/autoload', '^1.2.0');
82-
$this->assertEquals(4, count($modules));
82+
$this->assertEquals(5, count($modules));
8383
$this->assertEquals('1.2.0', $modules[0]->getVersion());
8484
$this->assertEquals('1.2.1', $modules[1]->getVersion());
8585
$this->assertEquals('1.2.2', $modules[2]->getVersion());
8686
$this->assertEquals('1.3.0', $modules[3]->getVersion());
87+
$this->assertEquals('1.4.0', $modules[4]->getVersion());
8788
}
8889
}

tests/unit/RemoteModuleLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function testCanLoadLatestVersionByArchiveName()
7474
$module = $this->loader->loadLatestVersionByArchiveName('composer/autoload');
7575

7676
$this->assertEquals('composer/autoload', $module->getArchiveName());
77-
$this->assertEquals('1.3.0', $module->getVersion());
77+
$this->assertEquals('1.4.0', $module->getVersion());
7878
}
7979

8080
public function testCanLoadByArchiveNameAndVersion()

0 commit comments

Comments
 (0)