diff options
Diffstat (limited to 'tests/Wallabag/ImportBundle/Import/PocketImportTest.php')
-rw-r--r-- | tests/Wallabag/ImportBundle/Import/PocketImportTest.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/Wallabag/ImportBundle/Import/PocketImportTest.php b/tests/Wallabag/ImportBundle/Import/PocketImportTest.php index b81ebe15..f75e6bea 100644 --- a/tests/Wallabag/ImportBundle/Import/PocketImportTest.php +++ b/tests/Wallabag/ImportBundle/Import/PocketImportTest.php | |||
@@ -282,7 +282,7 @@ class PocketImportTest extends \PHPUnit_Framework_TestCase | |||
282 | 282 | ||
283 | $this->contentProxy | 283 | $this->contentProxy |
284 | ->expects($this->once()) | 284 | ->expects($this->once()) |
285 | ->method('updateEntry') | 285 | ->method('importEntry') |
286 | ->willReturn($entry); | 286 | ->willReturn($entry); |
287 | 287 | ||
288 | $pocketImport->setClient($client); | 288 | $pocketImport->setClient($client); |
@@ -377,7 +377,7 @@ class PocketImportTest extends \PHPUnit_Framework_TestCase | |||
377 | 377 | ||
378 | $this->contentProxy | 378 | $this->contentProxy |
379 | ->expects($this->exactly(2)) | 379 | ->expects($this->exactly(2)) |
380 | ->method('updateEntry') | 380 | ->method('importEntry') |
381 | ->willReturn($entry); | 381 | ->willReturn($entry); |
382 | 382 | ||
383 | $pocketImport->setClient($client); | 383 | $pocketImport->setClient($client); |
@@ -450,7 +450,7 @@ JSON; | |||
450 | 450 | ||
451 | $this->contentProxy | 451 | $this->contentProxy |
452 | ->expects($this->never()) | 452 | ->expects($this->never()) |
453 | ->method('updateEntry'); | 453 | ->method('importEntry'); |
454 | 454 | ||
455 | $producer = $this->getMockBuilder('OldSound\RabbitMqBundle\RabbitMq\Producer') | 455 | $producer = $this->getMockBuilder('OldSound\RabbitMqBundle\RabbitMq\Producer') |
456 | ->disableOriginalConstructor() | 456 | ->disableOriginalConstructor() |
@@ -536,7 +536,7 @@ JSON; | |||
536 | 536 | ||
537 | $this->contentProxy | 537 | $this->contentProxy |
538 | ->expects($this->never()) | 538 | ->expects($this->never()) |
539 | ->method('updateEntry'); | 539 | ->method('ImportEntry'); |
540 | 540 | ||
541 | $factory = new RedisMockFactory(); | 541 | $factory = new RedisMockFactory(); |
542 | $redisMock = $factory->getAdapter('Predis\Client', true); | 542 | $redisMock = $factory->getAdapter('Predis\Client', true); |
@@ -621,7 +621,7 @@ JSON; | |||
621 | 621 | ||
622 | $this->contentProxy | 622 | $this->contentProxy |
623 | ->expects($this->once()) | 623 | ->expects($this->once()) |
624 | ->method('updateEntry') | 624 | ->method('importEntry') |
625 | ->will($this->throwException(new \Exception())); | 625 | ->will($this->throwException(new \Exception())); |
626 | 626 | ||
627 | $pocketImport->setClient($client); | 627 | $pocketImport->setClient($client); |