Exemplo n.º 1
0
 public function testIsAuthRequired()
 {
     $wishlist = $this->getMockBuilder('Magento\\Wishlist\\Model\\Wishlist')->setMethods(['getId', '__wakeup', 'getCustomerId', 'getItemCollection', 'getSharingCode'])->disableOriginalConstructor()->getMock();
     $wishlist->expects($this->any())->method('getSharingCode')->will($this->returnValue('somesharingcode'));
     $this->wishlistHelperMock->expects($this->any())->method('getWishlist')->will($this->returnValue($wishlist));
     $this->assertEquals(false, $this->model->isAuthRequired());
 }