You are here

public function DeleteTest::testFileDelete in IMCE 8

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/Plugin/ImcePlugin/DeleteTest.php \Drupal\Tests\imce\Kernel\Plugin\ImcePlugin\DeleteTest::testFileDelete()

Test file delete.

File

tests/src/Kernel/Plugin/ImcePlugin/DeleteTest.php, line 107

Class

DeleteTest
Kernel tests for Imce plugins for Imce Plugin Core.

Namespace

Drupal\Tests\imce\Kernel\Plugin\ImcePlugin

Code

public function testFileDelete() {
  $this
    ->assertTrue(file_exists(PublicStream::basePath() . '/ciandt.jpg'));
  $this->delete
    ->opDelete($this->imceFM);
  $this
    ->assertTrue(!file_exists(PublicStream::basePath() . '/ciandt.jpg'));
}