Пример #1
0
 /**
  * Test andModelIs filter.
  *
  * @dataProvider provideForOrModelIdIs()
  */
 public function testOrModelIdIs($expected, $modelId1, $modelId2, $modelId3)
 {
     $filter = new Filter();
     $item = new MockedAbstractItem(ItemInterface::CREATE, null, $modelId1);
     $filter->andSub(new MockedFilter(false));
     $filter->orModelIs($modelId2)->orModelIs($modelId3);
     $this->assertEquals($expected, $filter->accepts($item));
 }