if (null === $user) {
$this->logger->warning('Unable to retrieve user', ['entry' => $storedEntry]);
- return false;
+ // return true to skip message
+ return true;
}
$this->import->setUser($user);
$message = new AMQPMessage($body);
- $consumer->execute($message);
+ $res = $consumer->execute($message);
+
+ $this->assertTrue($res);
}
public function testMessageWithEntryProcessed()
$res = $consumer->manage($body);
- $this->assertFalse($res);
+ $this->assertTrue($res);
}
public function testMessageWithEntryProcessed()