public function testGetAllBranchIds() { $data = Application_Model_BranchPeer::getAllBranchIds(); $this->assertInternalType('array', $data); $this->assertEquals(2, count($data)); $this->assertContains('trunk', $data); $this->assertContains('branchA', $data); $this->assertNotContains('testfile', $data); }
public static function getBundles($branch = 'trunk') { $bundles = array(); if ($branch == 'ALL') { $branches = Application_Model_BranchPeer::getAllBranchIds(); foreach ($branches as $singleBranch) { $bundles = array_merge($bundles, self::getBundlesForBranch($singleBranch)); } } else { $bundles = self::getBundlesForBranch($branch); } return $bundles; }