public function DeleteTest::testFileDelete in IMCE 8.2
Same name and namespace in other branches
- 8 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\ImcePluginCode
public function testFileDelete() {
$this
->assertTrue(file_exists(PublicStream::basePath() . '/ciandt.jpg'));
$this->delete
->opDelete($this->imceFM);
$this
->assertTrue(!file_exists(PublicStream::basePath() . '/ciandt.jpg'));
}