/** * Sets vcs type repositories. * * @param RepositoryManager $rm */ public static function setVcsTypeRepositories(RepositoryManager $rm) { foreach (Assets::getTypes() as $assetType) { foreach (Assets::getVcsRepositoryDrivers() as $driverType => $repositoryClass) { $rm->setRepositoryClass($assetType . '-' . $driverType, $repositoryClass); } } }
public function testGetVcsRepositoryDrivers() { $this->assertEquals(array('vcs', 'github', 'git-bitbucket', 'git', 'hg-bitbucket', 'hg', 'perforce', 'svn'), array_keys(Assets::getVcsRepositoryDrivers())); }