Use assertEqualsCanonicalizing instead of deprecated assertEquals parameter

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2020-07-23 13:38:49 +02:00
parent e4144e6b36
commit 7e6c0ec284
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
2 changed files with 4 additions and 4 deletions

View File

@ -441,7 +441,7 @@ EOD;
$expectedEventsInResult = array_map(function ($index) use ($events) { $expectedEventsInResult = array_map(function ($index) use ($events) {
return $events[$index]; return $events[$index];
}, $expectedEventsInResult); }, $expectedEventsInResult);
$this->assertEquals($expectedEventsInResult, $result, '', 0.0, 10, true); $this->assertEqualsCanonicalizing($expectedEventsInResult, $result);
} }
public function testGetCalendarObjectByUID() { public function testGetCalendarObjectByUID() {

View File

@ -329,7 +329,7 @@ class FactoryTest extends TestCase {
->with($app) ->with($app)
->willReturn(\OC::$SERVERROOT . '/tests/data/l10n/'); ->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() { public function dataLanguageExists() {
@ -360,7 +360,7 @@ class FactoryTest extends TestCase {
->with('theme') ->with('theme')
->willReturn('abc'); ->willReturn('abc');
$this->assertEquals(['en', 'zz'], $factory->findAvailableLanguages($app), '', 0.0, 10, true); $this->assertEqualsCanonicalizing(['en', 'zz'], $factory->findAvailableLanguages($app));
} }
/** /**