public function testGetResultsOlderThan()
 {
     $cutoff = new \DateTime("-90 minutes");
     $results = $this->repo->getResultsOlderThan($cutoff);
     $this->assertEquals(TestResultFixtures::$results['result-1']->getId(), $results->next()[0]->getId());
     $this->assertFalse($results->next());
 }
Example #2
0
 public function testFindByGroupNameInvalidGroup()
 {
     $this->assertEquals([], $this->repo->findByGroupName("IfThisGroupExistsIBrokeIt"));
 }