$entity =
$this->
getMockForAbstractClass('Drupal\Core\Entity\EntityBase',
[[],
$definition['entity_type'
]], '', TRUE, TRUE, TRUE,
['getEntityType', 'bundle'
]);
$entity->
expects($this->
any()) ->
method('getEntityType'
) ->
willReturn($this->entityType
);
$entity->
expects($this->
any()) ->
method('bundle'
) ->
willReturn($definition['bundle'
]);
$this->entityForm->
setEntity($entity);
$this->entityForm->
setOperation($definition['operation'
]);
$this->
assertSame($expected,
$this->entityForm->
getFormId());
} /**
* Provides test data for testFormId().
*/
public function providerTestFormIds() { return [ [ 'node_article_form',
[