Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix errors in calendar tests saying function handleIMipMessage does n… #35620

Merged
merged 1 commit into from
Dec 7, 2022

Conversation

come-nc
Copy link
Contributor

@come-nc come-nc commented Dec 6, 2022

…ot exists on ICreateFromString

Signed-off-by: Côme Chilliet come.chilliet@nextcloud.com

Fixes the following:

1) Test\Calendar\ManagerTest::testHandleImipReplyEventNotFound
PHPUnit\Framework\MockObject\MethodCannotBeConfiguredException: Trying to configure method "handleIMipMessage" which cannot be configured because it does not exist, has not been specified, is final, or is static

/home/mcmic/dev/nextcloud/server/tests/lib/Calendar/ManagerTest.php:356

2) Test\Calendar\ManagerTest::testHandleImipReply
PHPUnit\Framework\MockObject\MethodCannotBeConfiguredException: Trying to configure method "handleIMipMessage" which cannot be configured because it does not exist, has not been specified, is final, or is static

/home/mcmic/dev/nextcloud/server/tests/lib/Calendar/ManagerTest.php:391

3) Test\Calendar\ManagerTest::testHandleImipCancelOrganiserInReplyTo
PHPUnit\Framework\MockObject\MethodCannotBeConfiguredException: Trying to configure method "handleIMipMessage" which cannot be configured because it does not exist, has not been specified, is final, or is static

/home/mcmic/dev/nextcloud/server/tests/lib/Calendar/ManagerTest.php:513

4) Test\Calendar\ManagerTest::testHandleImipCancel
TypeError: PHPUnit\Framework\TestCase::createMock(): Argument #1 ($originalClassName) must be of type string, array given, called in /home/mcmic/dev/nextcloud/server/tests/lib/Calendar/ManagerTest.php on line 536

…ot exists on ICreateFromString

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc self-assigned this Dec 6, 2022
@come-nc come-nc added this to the Nextcloud 26 milestone Dec 6, 2022
@come-nc come-nc added 3. to review Waiting for reviews tests Related to tests labels Dec 6, 2022
@come-nc come-nc requested review from juliushaertl, a team, PVince81 and skjnldsv and removed request for a team December 6, 2022 14:37
@come-nc come-nc mentioned this pull request Dec 6, 2022
19 tasks
@juliushaertl juliushaertl merged commit 3c8fb59 into master Dec 7, 2022
@juliushaertl juliushaertl deleted the fix/fix-calendar-imip-tests branch December 7, 2022 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews tests Related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants