From: ArthurHoaro Date: Fri, 16 Oct 2020 17:26:03 +0000 (+0200) Subject: Merge pull request #1593 from ArthurHoaro/fix/no-url-rewriting X-Git-Tag: v0.12.1^2~36 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=81c9df1363116b0f70161ccf55af4d6aab8c7f6b;hp=7836ed9b2e98e2c6898f011e431d3a58ebcfa3e5;p=github%2Fshaarli%2FShaarli.git Merge pull request #1593 from ArthurHoaro/fix/no-url-rewriting --- diff --git a/application/bookmark/BookmarkFileService.php b/application/bookmark/BookmarkFileService.php index 804b2520..eb7899bf 100644 --- a/application/bookmark/BookmarkFileService.php +++ b/application/bookmark/BookmarkFileService.php @@ -349,7 +349,7 @@ class BookmarkFileService implements BookmarkServiceInterface $bookmarkDays = array_keys($bookmarkDays); sort($bookmarkDays); - return $bookmarkDays; + return array_map('strval', $bookmarkDays); } /** diff --git a/tests/bookmark/BookmarkFileServiceTest.php b/tests/bookmark/BookmarkFileServiceTest.php index 59c0608c..42485c99 100644 --- a/tests/bookmark/BookmarkFileServiceTest.php +++ b/tests/bookmark/BookmarkFileServiceTest.php @@ -690,12 +690,12 @@ class BookmarkFileServiceTest extends TestCase */ public function testDays() { - $this->assertEquals( + $this->assertSame( ['20100309', '20100310', '20121206', '20121207', '20130614', '20150310'], $this->publicLinkDB->days() ); - $this->assertEquals( + $this->assertSame( ['20100309', '20100310', '20121206', '20121207', '20130614', '20141125', '20150310'], $this->privateLinkDB->days() );