X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FImportBundle%2FTests%2FImport%2FPocketImportTest.php;h=43b60ec3eac0b5404d24150001a32017caa14166;hb=439b36323e37f669b056cc5228c44bb91196256c;hp=bc9e2f422d632e2ee0fe6d1e71b0c89201c5dd7e;hpb=e68568cd5bc70298f1ea712b5b203635bd9d15b5;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/ImportBundle/Tests/Import/PocketImportTest.php b/src/Wallabag/ImportBundle/Tests/Import/PocketImportTest.php index bc9e2f42..43b60ec3 100644 --- a/src/Wallabag/ImportBundle/Tests/Import/PocketImportTest.php +++ b/src/Wallabag/ImportBundle/Tests/Import/PocketImportTest.php @@ -85,7 +85,7 @@ class PocketImportTest extends \PHPUnit_Framework_TestCase $this->assertEquals('Pocket', $pocketImport->getName()); $this->assertNotEmpty($pocketImport->getUrl()); - $this->assertContains('This importer will import all your Pocket data.', $pocketImport->getDescription()); + $this->assertEquals('import.pocket.description', $pocketImport->getDescription()); } public function testOAuthRequest() @@ -302,8 +302,6 @@ class PocketImportTest extends \PHPUnit_Framework_TestCase "given_title": "The Massive Ryder Cup Preview - The Triangle Blog - Grantland", "favorite": "1", "status": "1", - "resolved_title": "The Massive Ryder Cup Preview", - "resolved_url": "http://www.grantland.com/blog/the-triangle/post/_/id/38347/ryder-cup-preview", "excerpt": "The list of things I love about the Ryder Cup is so long that it could fill a (tedious) novel, and golf fans can probably guess most of them.", "is_article": "1", "has_video": "1", @@ -317,8 +315,6 @@ class PocketImportTest extends \PHPUnit_Framework_TestCase "given_title": "The Massive Ryder Cup Preview - The Triangle Blog - Grantland", "favorite": "1", "status": "0", - "resolved_title": "The Massive Ryder Cup Preview", - "resolved_url": "http://www.grantland.com/blog/the-triangle/post/_/id/38347/ryder-cup-preview", "excerpt": "The list of things I love about the Ryder Cup is so long that it could fill a (tedious) novel, and golf fans can probably guess most of them.", "is_article": "1", "has_video": "0", @@ -351,7 +347,7 @@ class PocketImportTest extends \PHPUnit_Framework_TestCase $this->em ->expects($this->any()) ->method('persist') - ->with($this->callback(function($persistedEntry) { + ->with($this->callback(function ($persistedEntry) { return $persistedEntry->isArchived(); }));