示例#1
0
 /**
  * Test andModelIs filter.
  *
  * @dataProvider provideForModelIsNotFromDataProvider()
  */
 public function testModelIsNotFromDataProvider($expected, $provider1, $provider2)
 {
     $filter = new Filter();
     $item = new MockedAbstractItem(ItemInterface::CREATE, null, $provider1);
     $filter->andSub(new MockedFilter(true));
     $filter->andModelIsNotFromProvider($provider2);
     $this->assertEquals($expected, $filter->accepts($item));
 }