/**
  * Tests setter and getter.
  */
 public function testSetGetPersistParam()
 {
     $aPersistentParam = array('testable' => 'persistent param');
     $oArticleToExpressCheckoutValidator = new oePayPalArticleToExpressCheckoutCurrentItem();
     $oArticleToExpressCheckoutValidator->setPersistParam($aPersistentParam);
     $this->assertEquals($aPersistentParam, $oArticleToExpressCheckoutValidator->getPersistParam());
 }
 /**
  * Checks if item is same in given basket, if so, item is not valid
  *
  * @dataProvider providerIsArticleValid_False
  */
 public function testIsArticleValid_False($sProductId, $aSelectionList, $aPersistentParam, $iAmount)
 {
     $sBasketProductId = 'ProductId';
     $aBasketSelectionList = array('testable' => 'list');
     $aBasketPersistentParam = array('testable' => 'persistent param');
     $oBasket = $this->_createBasket($sBasketProductId, $aBasketSelectionList, $aBasketPersistentParam);
     $oArticleToExpressCheckoutCurrentItem = new oePayPalArticleToExpressCheckoutCurrentItem();
     $oArticleToExpressCheckoutValidator = new oePayPalArticleToExpressCheckoutValidator();
     $oArticleToExpressCheckoutCurrentItem->setPersistParam($aPersistentParam);
     $oArticleToExpressCheckoutCurrentItem->setSelectList($aSelectionList);
     $oArticleToExpressCheckoutCurrentItem->setArticleId($sProductId);
     $oArticleToExpressCheckoutCurrentItem->setArticleAmount($iAmount);
     $oArticleToExpressCheckoutValidator->setBasket($oBasket);
     $oArticleToExpressCheckoutValidator->setItemToValidate($oArticleToExpressCheckoutCurrentItem);
     $this->assertFalse($oArticleToExpressCheckoutValidator->isArticleValid());
 }