public function FileRemoveButtonTest::testRemoveButtonGone in Thunder 8.3
Same name and namespace in other branches
- 8.5 modules/thunder_media/tests/src/Functional/FileRemoveButtonTest.php \Drupal\Tests\thunder_media\Functional\FileRemoveButtonTest::testRemoveButtonGone()
- 8.2 modules/thunder_media/tests/src/Functional/FileRemoveButtonTest.php \Drupal\Tests\thunder_media\Functional\FileRemoveButtonTest::testRemoveButtonGone()
- 8.4 modules/thunder_media/tests/src/Functional/FileRemoveButtonTest.php \Drupal\Tests\thunder_media\Functional\FileRemoveButtonTest::testRemoveButtonGone()
- 6.2.x modules/thunder_media/tests/src/Functional/FileRemoveButtonTest.php \Drupal\Tests\thunder_media\Functional\FileRemoveButtonTest::testRemoveButtonGone()
- 6.0.x modules/thunder_media/tests/src/Functional/FileRemoveButtonTest.php \Drupal\Tests\thunder_media\Functional\FileRemoveButtonTest::testRemoveButtonGone()
- 6.1.x modules/thunder_media/tests/src/Functional/FileRemoveButtonTest.php \Drupal\Tests\thunder_media\Functional\FileRemoveButtonTest::testRemoveButtonGone()
Test for transliteration of file name.
File
- modules/
thunder_media/ tests/ src/ Functional/ FileRemoveButtonTest.php, line 24
Class
- FileRemoveButtonTest
- Tests for transliteration of file names.
Namespace
Drupal\Tests\thunder_media\FunctionalCode
public function testRemoveButtonGone() {
$this
->logWithRole('editor');
$this
->drupalGet('media/19/edit');
$this
->assertSession()
->elementNotExists('css', '#edit-field-image-0-remove-button');
$this
->config('thunder_media.settings')
->set('enable_filefield_remove_button', TRUE)
->save();
$this
->drupalGet('media/19/edit');
$this
->assertSession()
->elementExists('css', '#edit-field-image-0-remove-button');
}