aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/ImportBundle/Controller/PinboardControllerTest.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2019-01-17 14:28:05 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2019-01-18 15:25:50 +0100
commit1e0d8ad7b728f6fb2cd886526b0fb84ef803e84f (patch)
treeb4f38bf4a01580f5f7218440e7054688d7178e53 /tests/Wallabag/ImportBundle/Controller/PinboardControllerTest.php
parent8445ad4790ff4f3f9759f9bfa0d503ad5654e30e (diff)
downloadwallabag-1e0d8ad7b728f6fb2cd886526b0fb84ef803e84f.tar.gz
wallabag-1e0d8ad7b728f6fb2cd886526b0fb84ef803e84f.tar.zst
wallabag-1e0d8ad7b728f6fb2cd886526b0fb84ef803e84f.zip
Enable PHPStan
- Fix error for level 0 & 1 (level 7 has 699 errors...) - Add `updated_at` to site_credential (so the `timestamps()` method applies correctly)
Diffstat (limited to 'tests/Wallabag/ImportBundle/Controller/PinboardControllerTest.php')
-rw-r--r--tests/Wallabag/ImportBundle/Controller/PinboardControllerTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/Wallabag/ImportBundle/Controller/PinboardControllerTest.php b/tests/Wallabag/ImportBundle/Controller/PinboardControllerTest.php
index 80819f45..15646d55 100644
--- a/tests/Wallabag/ImportBundle/Controller/PinboardControllerTest.php
+++ b/tests/Wallabag/ImportBundle/Controller/PinboardControllerTest.php
@@ -127,7 +127,7 @@ class PinboardControllerTest extends WallabagCoreTestCase
127 $this->assertContains('foot', $tags, 'It includes the "foot" tag'); 127 $this->assertContains('foot', $tags, 'It includes the "foot" tag');
128 $this->assertContains('varnish', $tags, 'It includes the "varnish" tag'); 128 $this->assertContains('varnish', $tags, 'It includes the "varnish" tag');
129 $this->assertContains('php', $tags, 'It includes the "php" tag'); 129 $this->assertContains('php', $tags, 'It includes the "php" tag');
130 $this->assertSame(3, \count($tags)); 130 $this->assertCount(3, $tags);
131 131
132 $this->assertInstanceOf(\DateTime::class, $content->getCreatedAt()); 132 $this->assertInstanceOf(\DateTime::class, $content->getCreatedAt());
133 $this->assertSame('2016-10-26', $content->getCreatedAt()->format('Y-m-d')); 133 $this->assertSame('2016-10-26', $content->getCreatedAt()->format('Y-m-d'));