/** * @test * @group calendarrepo */ public function should_return_empty_set_when_looking_too_far_in_future() { $klimtoren = $this->getKlimtoren(); $start = date("Y-m-d H:i:s", 2007182400); //9/8/2033 $end = date("Y-m-d H:i:s", 2015758400); //16/11/2033 $events = $this->calendarRepo->eventsBetween($klimtoren, $start, $end); $this->assertEmpty($events); }
public function eventsBetween($orgId, $start, $end) { $organization = $this->orgRepo->organizationOfId($orgId); return $this->calendarRepo->eventsBetween($organization, $start, $end); }