public function testCopyContentTypeWithSecondArgument() { $time = time(); /* BEGIN: Use Case */ $user = $this->getStubbedUser(14); $this->repository->setCurrentUser($user); $contentTypeService = $this->repository->getContentTypeService(); $commentType = $contentTypeService->loadContentTypeByIdentifier('comment'); $copiedCommentType = $contentTypeService->copyContentType($commentType, $user); /* END: Use Case */ return array('originalType' => $commentType, 'copiedType' => $copiedCommentType, 'time' => $time, 'userId' => $user->id); }