Skip to content

Commit 683569c

Browse files
committed
test: improve test
1 parent 44f1d55 commit 683569c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/unit/ModuleLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function testCanLoadAllVersionsByContraint()
7979

8080
// tests for version >=1.0.0
8181
$modules = $this->loader->loadAllByArchiveNameAndConstraint('composer/autoload', '^1.2.0');
82-
$this->assertEquals(5, count($modules));
82+
$this->assertEquals(6, 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());

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.4.0', $module->getVersion());
77+
$this->assertEquals('1.5.0', $module->getVersion());
7878
}
7979

8080
public function testCanLoadByArchiveNameAndVersion()

0 commit comments

Comments
 (0)