Skip to content
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('[email protected]')
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('[email protected]')
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('[email protected]')
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('[email protected]')
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('[email protected]')
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', '[email protected]')
->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('[email protected]')
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('[email protected]')
Expand Down