You are here

public function ResizeTest::setSelection in IMCE 8.2

Same name and namespace in other branches
  1. 8 tests/src/Kernel/Plugin/ImcePlugin/ResizeTest.php \Drupal\Tests\imce\Kernel\Plugin\ImcePlugin\ResizeTest::setSelection()

Set the ImceFM::selection[].

1 call to ResizeTest::setSelection()
ResizeTest::setUp in tests/src/Kernel/Plugin/ImcePlugin/ResizeTest.php

File

tests/src/Kernel/Plugin/ImcePlugin/ResizeTest.php, line 94

Class

ResizeTest
Kernel tests for Imce plugins for Imce Plugin Core.

Namespace

Drupal\Tests\imce\Kernel\Plugin\ImcePlugin

Code

public function setSelection() {
  $this->imceFM->selection[] = $this->imceFM
    ->createItem('file', "ciandt.jpg", [
    'path' => '.',
  ]);

  // $this->imceFM->getConf()
  $this->imceFM->selection[0]->parent = new ImceFolder('.', $this
    ->getConf());
  $this->imceFM->selection[0]->parent
    ->setFm($this->imceFM);
  $this->imceFM->selection[0]->parent
    ->setPath('.');
}