public function FileFieldSourcesTestBase::assertFileNotUploaded in FileField Sources 8
Check to see if file is not uploaded.
Parameters
int $delta: Delta in multiple values field.
6 calls to FileFieldSourcesTestBase::assertFileNotUploaded()
- FileFieldSourcesTestBase::uploadFileByAttachSource in tests/
src/ Functional/ FileFieldSourcesTestBase.php - Upload file by 'Attach' source.
- FileFieldSourcesTestBase::uploadFileByClipboardSource in tests/
src/ Functional/ FileFieldSourcesTestBase.php - Upload file by 'Clipboard' source.
- FileFieldSourcesTestBase::uploadFileByImceSource in tests/
src/ Functional/ FileFieldSourcesTestBase.php - Upload file by 'Imce' source.
- FileFieldSourcesTestBase::uploadFileByReferenceSource in tests/
src/ Functional/ FileFieldSourcesTestBase.php - Upload file by 'Reference' source.
- FileFieldSourcesTestBase::uploadFileByRemoteSource in tests/
src/ Functional/ FileFieldSourcesTestBase.php - Upload file by 'Remote' source.
File
- tests/
src/ Functional/ FileFieldSourcesTestBase.php, line 282
Class
- FileFieldSourcesTestBase
- Base class for File Field Sources test cases.
Namespace
Drupal\Tests\filefield_sources\FunctionalCode
public function assertFileNotUploaded($delta = 0) {
$xpath = '//input[@name="' . $this->fieldName . '_' . $delta . '_remove_button"]';
$fields = $this
->xpath($xpath);
$this
->assertTrue(empty($fields), '"Remove" button is not displayed.');
}