Exemplo n.º 1
0
 /**
  * Delete Term Entity test.
  *
  * @param CheckoutAgreement $agreement
  * @return void
  */
 public function test(CheckoutAgreement $agreement)
 {
     // Precondition
     $agreement->persist();
     // Steps
     $this->agreementIndex->open()->getAgreementGridBlock()->searchAndOpen(['name' => $agreement->getName()]);
     $this->agreementNew->getPageActionsBlock()->delete();
 }
Exemplo n.º 2
0
 /**
  * Update Term Entity test.
  *
  * @param CheckoutAgreementNew $agreementNew
  * @param CheckoutAgreementIndex $agreementIndex
  * @param CheckoutAgreement $agreement
  * @param CheckoutAgreement $agreementOrigin
  * @return void
  */
 public function test(CheckoutAgreementNew $agreementNew, CheckoutAgreementIndex $agreementIndex, CheckoutAgreement $agreement, CheckoutAgreement $agreementOrigin)
 {
     // Precondition
     $agreementOrigin->persist();
     // Steps
     $agreementIndex->open();
     $agreementIndex->getAgreementGridBlock()->searchAndOpen(['name' => $agreementOrigin->getName()]);
     $agreementNew->getAgreementsForm()->fill($agreement);
     $agreementNew->getPageActionsBlock()->save();
 }
 /**
  * Create checkout agreement.
  *
  * @return array
  */
 public function run()
 {
     $this->agreement->persist();
     return ['agreement' => $this->agreement];
 }