Ejemplo n.º 1
0
 public function testGetAssociationMappingException()
 {
     $filter = new FooFilter();
     $filter->initialize('foo');
     try {
         $filter->getAssociationMapping();
     } catch (\RuntimeException $e) {
         $this->assertContains('The option `association_mapping` must be set for field: `foo`', $e->getMessage());
         return;
     }
     $this->fail('Failed asserting that exception of type "\\RuntimeException" is thrown.');
 }