You are here

public function FileFieldSourcesTestBase::assertFileRemoved in FileField Sources 8

Check to see if file is removed.

Parameters

string $filename: File name.

1 call to FileFieldSourcesTestBase::assertFileRemoved()
FileFieldSourcesTestBase::removeFile in tests/src/Functional/FileFieldSourcesTestBase.php
Remove uploaded file.

File

tests/src/Functional/FileFieldSourcesTestBase.php, line 440

Class

FileFieldSourcesTestBase
Base class for File Field Sources test cases.

Namespace

Drupal\Tests\filefield_sources\Functional

Code

public function assertFileRemoved($filename) {
  $this
    ->assertSession()
    ->linkNotExists($filename);
}