namespace Tests\Wallabag\ImportBundle\Consumer\AMQP;
-use Wallabag\ImportBundle\Consumer\AMPQEntryConsumer;
+use Wallabag\ImportBundle\Consumer\AMQPEntryConsumer;
use PhpAmqpLib\Message\AMQPMessage;
use Wallabag\UserBundle\Entity\User;
use Wallabag\CoreBundle\Entity\Entry;
-class AMPQEntryConsumerTest extends \PHPUnit_Framework_TestCase
+class AMQPEntryConsumerTest extends \PHPUnit_Framework_TestCase
{
public function testMessageOk()
{
->with(json_decode($body, true))
->willReturn($entry);
- $consumer = new AMPQEntryConsumer(
+ $consumer = new AMQPEntryConsumer(
$em,
$userRepository,
$import
->disableOriginalConstructor()
->getMock();
- $consumer = new AMPQEntryConsumer(
+ $consumer = new AMQPEntryConsumer(
$em,
$userRepository,
$import
->with(json_decode($body, true))
->willReturn(null);
- $consumer = new AMPQEntryConsumer(
+ $consumer = new AMQPEntryConsumer(
$em,
$userRepository,
$import