/** * A method to test the getCampaignsInfoByAgencyId method. */ function testGetCampaignsInfoByAgencyIdAndPriority() { list($agencyId1, $agencyId2) = $this->_generateAgencyCampaigns($priority = 4, 1); $da = new OA_Dal_Maintenance_Priority(); // Test 1 getCampaignsInfoByAgencyId method. $ret = $da->getCampaignsInfoByAgencyIdAndPriority($agencyId1, $priority); $this->checkTestResults($ret, $this->firsCampaignId, $this->firsAdId); // Test 2 getCampaignsInfoByAgencyId method. $ret = $da->getCampaignsInfoByAgencyIdAndPriority($agencyId2, $priority); $this->checkTestResults($ret, $this->secondCampaignId, $this->secondAdId); DataGenerator::cleanUp(); }