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

[stable30] fix(dav): imip service test expects integers for last occurence #48056

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions apps/dav/tests/unit/CalDAV/Schedule/IMipPluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public function testParsingSingle(): void {
$this->plugin->setVCalendar($oldVCalendar);
$this->service->expects(self::once())
->method('getLastOccurrence')
->willReturn('1496912700');
->willReturn(1496912700);
$this->mailer->expects(self::once())
->method('validateMailAddress')
->with('frodo@hobb.it')
Expand Down Expand Up @@ -248,7 +248,7 @@ public function testParsingSingle(): void {
->willReturn('yes');
$this->service->expects(self::once())
->method('createInvitationToken')
->with($message, $newVevent, '1496912700')
->with($message, $newVevent, 1496912700)
->willReturn('token');
$this->service->expects(self::once())
->method('addResponseButtons')
Expand Down Expand Up @@ -305,7 +305,7 @@ public function testAttendeeIsResource(): void {
$this->plugin->setVCalendar($oldVCalendar);
$this->service->expects(self::once())
->method('getLastOccurrence')
->willReturn('1496912700');
->willReturn(1496912700);
$this->mailer->expects(self::once())
->method('validateMailAddress')
->with('the-shire@hobb.it')
Expand Down Expand Up @@ -406,7 +406,7 @@ public function testParsingRecurrence(): void {
$this->plugin->setVCalendar($oldVCalendar);
$this->service->expects(self::once())
->method('getLastOccurrence')
->willReturn('1496912700');
->willReturn(1496912700);
$this->mailer->expects(self::once())
->method('validateMailAddress')
->with('frodo@hobb.it')
Expand Down Expand Up @@ -452,7 +452,7 @@ public function testParsingRecurrence(): void {
->willReturn('yes');
$this->service->expects(self::once())
->method('createInvitationToken')
->with($message, $newVevent, '1496912700')
->with($message, $newVevent, 1496912700)
->willReturn('token');
$this->service->expects(self::once())
->method('addResponseButtons')
Expand Down Expand Up @@ -485,7 +485,7 @@ public function testEmailValidationFailed() {

$this->service->expects(self::once())
->method('getLastOccurrence')
->willReturn('1496912700');
->willReturn(1496912700);
$this->mailer->expects(self::once())
->method('validateMailAddress')
->with('frodo@hobb.it')
Expand Down Expand Up @@ -537,7 +537,7 @@ public function testFailedDelivery(): void {
$this->plugin->setVCalendar($oldVcalendar);
$this->service->expects(self::once())
->method('getLastOccurrence')
->willReturn('1496912700');
->willReturn(1496912700);
$this->mailer->expects(self::once())
->method('validateMailAddress')
->with('frodo@hobb.it')
Expand Down Expand Up @@ -583,7 +583,7 @@ public function testFailedDelivery(): void {
->willReturn('yes');
$this->service->expects(self::once())
->method('createInvitationToken')
->with($message, $newVevent, '1496912700')
->with($message, $newVevent, 1496912700)
->willReturn('token');
$this->service->expects(self::once())
->method('addResponseButtons')
Expand Down Expand Up @@ -650,7 +650,7 @@ public function testMailProviderSend(): void {
// construct service mock returns
$this->service->expects(self::once())
->method('getLastOccurrence')
->willReturn('1496912700');
->willReturn(1496912700);
$this->service->expects(self::once())
->method('getCurrentAttendee')
->with($message)
Expand All @@ -676,7 +676,7 @@ public function testMailProviderSend(): void {
->willReturn(true);
$this->service->expects(self::once())
->method('createInvitationToken')
->with($message, $event, '1496912700')
->with($message, $event, 1496912700)
->willReturn('token');
$this->service->expects(self::once())
->method('addResponseButtons')
Expand All @@ -703,7 +703,7 @@ public function testMailProviderSend(): void {
->method('findServiceByAddress')
->with('user1', 'gandalf@wiz.ard')
->willReturn($this->mailService);

$this->plugin->schedule($message);
$this->assertEquals('1.1', $message->getScheduleStatus());
}
Expand Down Expand Up @@ -737,7 +737,7 @@ public function testNoOldEvent(): void {
}
$this->service->expects(self::once())
->method('getLastOccurrence')
->willReturn('1496912700');
->willReturn(1496912700);
$this->mailer->expects(self::once())
->method('validateMailAddress')
->with('frodo@hobb.it')
Expand Down Expand Up @@ -784,7 +784,7 @@ public function testNoOldEvent(): void {
->willReturn('yes');
$this->service->expects(self::once())
->method('createInvitationToken')
->with($message, $newVevent, '1496912700')
->with($message, $newVevent, 1496912700)
->willReturn('token');
$this->service->expects(self::once())
->method('addResponseButtons')
Expand Down Expand Up @@ -830,7 +830,7 @@ public function testNoButtons(): void {
}
$this->service->expects(self::once())
->method('getLastOccurrence')
->willReturn('1496912700');
->willReturn(1496912700);
$this->mailer->expects(self::once())
->method('validateMailAddress')
->with('frodo@hobb.it')
Expand Down
Loading