コード例 #1
0
 /**
  * Assert that gift registry type form data is equal to fixture data.
  *
  * @param GiftRegistryType $giftRegistryType
  * @param BackendGiftRegistryIndex $giftRegistryIndex
  * @param GiftRegistryNew $giftRegistryNew
  * @return void
  */
 public function processAssert(GiftRegistryType $giftRegistryType, BackendGiftRegistryIndex $giftRegistryIndex, GiftRegistryNew $giftRegistryNew)
 {
     $giftRegistryIndex->getGiftRegistryGrid()->searchAndOpen(['label' => $giftRegistryType->getLabel()]);
     $formData = $giftRegistryNew->getGiftRegistryForm()->getData($giftRegistryType);
     $fixtureData = $giftRegistryType->getData();
     $errors = $this->verifyData($fixtureData, $formData);
     \PHPUnit_Framework_Assert::assertEmpty($errors, $errors);
 }
コード例 #2
0
 /**
  * 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();
 }