/**
  * Assert that custom system variable not in cms page form
  *
  * @param CmsNew $cmsNewPage
  * @param SystemVariable $systemVariable
  * @return void
  */
 public function processAssert(CmsNew $cmsNewPage, SystemVariable $systemVariable)
 {
     $customVariableName = $systemVariable->getName();
     $cmsNewPage->open();
     $cmsPageForm = $cmsNewPage->getPageForm();
     $variables = $cmsPageForm->getSystemVariables();
     \PHPUnit_Framework_Assert::assertFalse(in_array($customVariableName, $variables), 'Custom System Variable "' . $customVariableName . '" is present in Cms Page Form.');
 }
 /**
  * Delete Custom System Variable Entity test
  *
  * @param SystemVariable $systemVariable
  * @return void
  */
 public function test(SystemVariable $systemVariable)
 {
     // Precondition
     $systemVariable->persist();
     // Steps
     $filter = ['code' => $systemVariable->getCode(), 'name' => $systemVariable->getName()];
     $this->systemVariableIndexPage->open();
     $this->systemVariableIndexPage->getSystemVariableGrid()->searchAndOpen($filter);
     $this->systemVariableNewPage->getFormPageActions()->delete();
 }
 /**
  * Assert custom variable is displayed on backend in custom variable grid
  *
  * @param SystemVariableIndex $systemVariableIndexNew
  * @param SystemVariable $customVariable
  * @return void
  */
 public function processAssert(SystemVariableIndex $systemVariableIndexNew, SystemVariable $customVariable)
 {
     $filter = ['code' => $customVariable->getCode(), 'name' => $customVariable->getName()];
     $systemVariableIndexNew->open();
     \PHPUnit_Framework_Assert::assertTrue($systemVariableIndexNew->getSystemVariableGrid()->isRowVisible($filter), 'Custom Variable with code \'' . $filter['code'] . '\' is absent in Custom Variable grid.');
 }