public function testCanGetScheduleByPublicId() { $publicId = uniqid(); $fakeSchedules = new FakeScheduleRepository(); $this->db->SetRows(array($fakeSchedules->GetRow())); $actualSchedule = $this->scheduleRepository->LoadByPublicId($publicId); $this->assertNotNull($actualSchedule); $this->assertEquals(new GetScheduleByPublicIdCommand($publicId), $this->db->_LastCommand); }