$this->assertCount(0, $calendarObjects);
}
-
+
public function testMultipleCalendarObjectsWithSameUID() {
$this->expectException(\Sabre\DAV\Exception\BadRequest::class);
$this->expectExceptionMessage('Calendar object with uid already exists in this calendar collection.');
$expectedEventsInResult = array_map(function($index) use($events) {
return $events[$index];
}, $expectedEventsInResult);
- $this->assertEquals($expectedEventsInResult, $result, '', 0.0, 10, true);
+ $this->assertEqualsCanonicalizing($expectedEventsInResult, $result);
}
public function testGetCalendarObjectByUID() {
->with($app)
->willReturn(\OC::$SERVERROOT . '/tests/data/l10n/');
- $this->assertEquals(['cs', 'de', 'en', 'ru'], $factory->findAvailableLanguages($app), '', 0.0, 10, true);
+ $this->assertEqualsCanonicalizing(['cs', 'de', 'en', 'ru'], $factory->findAvailableLanguages($app));
}
public function dataLanguageExists() {
->with('theme')
->willReturn('abc');
- $this->assertEquals(['en', 'zz'], $factory->findAvailableLanguages($app), '', 0.0, 10, true);
+ $this->assertEqualsCanonicalizing(['en', 'zz'], $factory->findAvailableLanguages($app));
}
/**