]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use assertEqualsCanonicalizing instead of deprecated assertEquals parameter
authorMorris Jobke <hey@morrisjobke.de>
Thu, 23 Jul 2020 11:38:49 +0000 (13:38 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 30 Jul 2020 11:18:20 +0000 (13:18 +0200)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
apps/dav/tests/unit/CalDAV/CalDavBackendTest.php
tests/lib/L10N/FactoryTest.php

index 8ac4961f19ff002f1898ff5e15018937305513bd..559b6f1b417c16e2aca96ad52911932ffdcb382d 100644 (file)
@@ -280,7 +280,7 @@ EOD;
                $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.');
@@ -443,7 +443,7 @@ EOD;
                $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() {
index c75bfba5b99ccf303cd67b3ef5ea7685dd2a0e50..f75eb3599f14c1e120df379e15f9ae304f45f8e8 100644 (file)
@@ -329,7 +329,7 @@ class FactoryTest extends TestCase {
                        ->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() {
@@ -360,7 +360,7 @@ class FactoryTest extends TestCase {
                        ->with('theme')
                        ->willReturn('abc');
 
-               $this->assertEquals(['en', 'zz'], $factory->findAvailableLanguages($app), '', 0.0, 10, true);
+               $this->assertEqualsCanonicalizing(['en', 'zz'], $factory->findAvailableLanguages($app));
        }
 
        /**