Commit e5429f46 authored by Thalles Ferreira's avatar Thalles Ferreira Committed by Thalles Ferreira
Browse files

Issue #3102987 by thalles: Create method setSelection() in DeleteTest

parent 88ad728a
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -48,6 +48,18 @@ class DeleteTest extends KernelTestBasePlugin {
    $this->imceFM = $this->getImceFM();
  }

  /**
   * Set the ImceFM::selection[].
   */
  public function setSelection() {
    $this->imceFM->selection[] = $this->imceFM->createItem(
      'file', "ciandt.jpg", ['path' => '.']
    );
    $this->imceFM->selection[0]->parent = new ImceFolder('.', $this->getConf());
    $this->imceFM->selection[0]->parent->setFm($this->imceFM);
    $this->imceFM->selection[0]->parent->setPath('.');
  }

  /**
   * Set the request parameters.
   */