public function testVersionCheck() { $composerFilePath = MAGENTO_BP . '/composer.json'; $fileContent = file_get_contents($composerFilePath); $currentReleaseVersion = json_decode($fileContent, true)['version']; $this->assertNotEmpty($this->versionCheck->getAvailableVersions()); $this->assertEquals($currentReleaseVersion, $this->versionCheck->getLatestProductVersion()); $this->assertEquals('dev-master', $this->versionCheck->getLatestDevelopmentVersion()); }
public function testGetLatestProductVersion() { $this->assertEquals($this->versions[1], $this->versionCheck->getLatestProductVersion()); }