예제 #1
0
 /**
  * Test orParentIs filter.
  *
  * @dataProvider provideParents()
  */
 public function testOrParentIs($expected, $parentId1, $parentId2, $parentId3)
 {
     $filter = new Filter();
     $item = new MockedAbstractItem(ItemInterface::CREATE, $parentId1);
     $filter->andSub(new MockedFilter(false));
     $filter->orParentIs($parentId2)->orParentIs($parentId3);
     $this->assertEquals($expected, $filter->accepts($item));
 }