/**
  * Edit Currency Symbol Entity test
  *
  * @param CurrencySymbolEntity $currencySymbol
  * @param string $configData
  * @return void
  */
 public function test(CurrencySymbolEntity $currencySymbol, $configData)
 {
     // Preconditions
     $this->importCurrencyRate($configData);
     // Steps
     $this->currencySymbolIndex->open();
     $this->currencySymbolIndex->getCurrencySymbolForm()->fill($currencySymbol);
     $this->currencySymbolIndex->getPageActions()->save();
 }
 /**
  * Reset Currency Symbol Entity test.
  *
  * @param CurrencySymbolEntity $currencySymbolOriginal
  * @param CurrencySymbolEntity $currencySymbol
  * @param string $currencySymbolDefault
  * @param string $configData
  * @return array
  */
 public function test(CurrencySymbolEntity $currencySymbolOriginal, CurrencySymbolEntity $currencySymbol, $currencySymbolDefault, $configData)
 {
     // Preconditions
     $currencySymbolOriginal->persist();
     $this->importCurrencyRate($configData);
     // Steps
     $this->currencySymbolIndex->open();
     $this->currencySymbolIndex->getCurrencySymbolForm()->fill($currencySymbol);
     $this->currencySymbolIndex->getPageActions()->save();
     return ['currencySymbol' => $this->fixtureFactory->createByCode('currencySymbolEntity', ['data' => array_merge($currencySymbol->getData(), ['custom_currency_symbol' => $currencySymbolDefault])])];
 }
 /**
  * Assert that after clicking on 'Save Currency Symbols' button success message appears.
  *
  * @param SystemCurrencySymbolIndex $currencySymbolIndex
  * @return void
  */
 public function processAssert(SystemCurrencySymbolIndex $currencySymbolIndex)
 {
     $actualMessage = $currencySymbolIndex->getMessagesBlock()->getSuccessMessage();
     \PHPUnit_Framework_Assert::assertEquals(self::SUCCESS_SAVE_MESSAGE, $actualMessage, 'Wrong success message is displayed.');
 }