/** * @param mixed $shoppingListId * @return ShoppingList */ public function getShoppingList($shoppingListId = null) { return $this->shoppingListManager->getForCurrentUser($shoppingListId); }
public function testGetForCurrentUser() { $shoppingList = $this->manager->getForCurrentUser(); $this->assertInstanceOf('OroB2B\\Bundle\\ShoppingListBundle\\Entity\\ShoppingList', $shoppingList); }