/**
  * @param $entity
  * @expectedException  \Magento\Framework\Exception\LocalizedException
  * @dataProvider nonExistentGeneratorsDataProvider
  */
 public function testHasIfNonExists($entity)
 {
     $this->_model->has($entity);
 }
Example #2
0
 /**
  * @param $type
  * @param $parents
  * @dataProvider getParentsDataProvider
  */
 public function testGetParents($type, $parents)
 {
     $this->assertEquals($parents, $this->_model->getParents($type));
 }
Example #3
0
 /**
  * @param $entity
  * @dataProvider nonExistentGeneratorsDataProvider
  */
 public function testHasIfNonExists($entity)
 {
     $this->assertFalse($this->_model->has($entity));
 }