Elgg\UserCapabilitiesTest::testCanAnnotateThrowsExceptionForNameArgumentSetToAnnotationInstance PHP Метод

testCanAnnotateThrowsExceptionForNameArgumentSetToAnnotationInstance() публичный Метод

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