/**
  * 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();
 }
 /**
  * Injection data
  *
  * @param SystemVariableIndex $systemVariableIndex
  * @param SystemVariableNew $systemVariableNew
  * @param SystemVariable $customVariableOrigin
  * @return array
  */
 public function __inject(SystemVariableIndex $systemVariableIndex, SystemVariableNew $systemVariableNew, SystemVariable $customVariableOrigin)
 {
     $this->systemVariableIndexPage = $systemVariableIndex;
     $this->systemVariableNewPage = $systemVariableNew;
     $customVariableOrigin->persist();
     return ['customVariableOrigin' => $customVariableOrigin];
 }