public function testHandle()
 {
     $args = $this->getMassActionArgs();
     $args->expects($this->any())->method('getData')->willReturn(['shoppingList' => 1]);
     $this->shoppingListItemHandler->expects($this->once())->method('getShoppingList')->willReturn($this->getEntity('OroB2B\\Bundle\\ShoppingListBundle\\Entity\\ShoppingList', 1));
     $this->shoppingListItemHandler->expects($this->once())->method('createForShoppingList')->willReturn(2);
     $response = $this->handler->handle($args);
     $this->assertTrue($response->isSuccessful());
     $this->assertEquals(2, $response->getOptions()['count']);
     $this->assertEquals(self::MESSAGE, $response->getMessage());
 }
 public function testIsAllowed()
 {
     $this->handler->expects($this->once())->method('isAllowed')->willReturn(true);
     $result = $this->processor->isAllowed();
     $this->assertInternalType('bool', $result);
     $this->assertTrue($result);
 }