/**
  * Assert that Gift Wrapping form was filled correctly.
  *
  * @param GiftWrappingIndex $giftWrappingIndexPage
  * @param GiftWrappingEdit $giftWrappingEdit
  * @param GiftWrapping $giftWrapping
  * @return void
  */
 public function processAssert(GiftWrappingIndex $giftWrappingIndexPage, GiftWrappingEdit $giftWrappingEdit, GiftWrapping $giftWrapping)
 {
     $data = $giftWrapping->getData();
     $data['base_price'] = number_format($data['base_price'], 2);
     $filter = ['design' => $data['design']];
     $giftWrappingIndexPage->open()->getGiftWrappingGrid()->searchAndOpen($filter);
     $formData = $giftWrappingEdit->getGiftWrappingForm()->getData();
     $errors = $this->verifyData($data, $formData);
     \PHPUnit_Framework_Assert::assertEmpty($errors, $errors);
 }
 /**
  * Delete all Gift Wrappings on backend.
  *
  * @return array
  */
 public function run()
 {
     $this->giftWrappingIndex->open();
     $giftWrappingGrid = $this->giftWrappingIndex->getGiftWrappingGrid();
     $giftWrappingGrid->resetFilter();
     while ($giftWrappingGrid->isFirstRowVisible()) {
         $giftWrappingGrid->openFirstRow();
         $this->giftWrappingEdit->getFormPageActions()->deleteAndAcceptAlert();
     }
 }