public function testCanAnnotateThrowsExceptionForNameArgumentSetToInteger() { $owner = $this->mocks()->getUser(); $entity = $this->mocks()->getObject(['owner_guid' => $owner->guid]); $entity->canAnnotate($owner->guid, 5); }