/** * @depends test_createComp */ public function test_competitions($photoComp) { $Competitions = new Competitions(); $this->assertEquals(1, count($Competitions->getCompetitions())); $this->assertEquals(0, count($Competitions->getCompetitions(Competitions::STATUS_CLOSED))); $this->assertEquals(0, count($Competitions->getCompetitions(Competitions::STATUS_FUTURE))); $this->assertEquals(1, count($Competitions->getCompetitions(Competitions::STATUS_OPEN))); $Competitions->getPreviousContestants(); $Competitions->getScreeners(); $Competitions->setAuthor($photoComp->Author)->suggestTheme("asfdafda786557isdfsf"); $Competitions->getNextCompetition($photoComp); }