/**
  * @dataProvider dataProvider_Search
  */
 public function testSearch_WithValidTerms_ReturnsExpectedResults($searchTerms, $expectedKeys)
 {
     $audit = new AuditTrail();
     $audit->setAttributes($searchTerms);
     $results = $audit->search();
     $data = $results->getData();
     $expectedResults = array();
     if (!empty($expectedKeys)) {
         foreach ($expectedKeys as $key) {
             $expectedResults[] = $this->audittrail($key);
         }
     }
     $this->assertEquals($expectedResults, $data);
 }