【发布时间】:2016-02-07 22:22:18
【问题描述】:
我有 $entity_type->isSubClassOf('Drupal\Core\Entity\FieldableEntityInterface')->willReturn(TRUE); 并收到这个非常莫名其妙的错误:
Prophecy\Exception\Call\UnexpectedCallException: Method call:
- isSubclassOf("Drupal\Core\Entity\FieldableEntityInterface")
on Double\EntityTypeInterface\P121 was not expected, expected calls were:
- isSubClassOf(exact("Drupal\Core\Entity\FieldableEntityInterface"))
【问题讨论】: