Exemplo n.º 1
0
 /**
  * Test testAndParentIsIn filter.
  *
  * @dataProvider provideParents()
  */
 public function testParentIsNotIn($expected, $parentId1, $parentId2, $parentId3)
 {
     $filter = new Filter();
     $item = new MockedAbstractItem(ItemInterface::CREATE, $parentId1);
     $filter->andSub(new MockedFilter(true));
     $filter->andParentIsNotIn([$parentId2, $parentId3]);
     $this->assertEquals(!$expected, $filter->accepts($item));
 }