/**
  * Run create gift registry type entity test.
  *
  * @param GiftRegistryType $giftRegistryType
  * @return void
  */
 public function test(GiftRegistryType $giftRegistryType)
 {
     // Steps
     $this->giftRegistryIndex->open();
     $this->giftRegistryIndex->getPageActions()->addNew();
     $this->giftRegistryNew->getGiftRegistryForm()->fill($giftRegistryType);
     $this->giftRegistryNew->getPageActions()->save();
 }
 /**
  * Assert that created gift registry type can be found at gift registry grid in backend.
  *
  * @param BackendGiftRegistryIndex $giftRegistryIndex
  * @param GiftRegistryType $giftRegistryType
  * @return void
  */
 public function processAssert(BackendGiftRegistryIndex $giftRegistryIndex, GiftRegistryType $giftRegistryType)
 {
     $giftRegistryIndex->open();
     $filter = ['label' => $giftRegistryType->getLabel()];
     \PHPUnit_Framework_Assert::assertTrue($giftRegistryIndex->getGiftRegistryGrid()->isRowVisible($filter), "Gift registry type '{$giftRegistryType->getLabel()}' is not present in grid.");
 }