You are here

public function FileRemoveButtonTest::testRemoveButtonGone in Thunder 8.3

Same name and namespace in other branches
  1. 8.5 modules/thunder_media/tests/src/Functional/FileRemoveButtonTest.php \Drupal\Tests\thunder_media\Functional\FileRemoveButtonTest::testRemoveButtonGone()
  2. 8.2 modules/thunder_media/tests/src/Functional/FileRemoveButtonTest.php \Drupal\Tests\thunder_media\Functional\FileRemoveButtonTest::testRemoveButtonGone()
  3. 8.4 modules/thunder_media/tests/src/Functional/FileRemoveButtonTest.php \Drupal\Tests\thunder_media\Functional\FileRemoveButtonTest::testRemoveButtonGone()
  4. 6.2.x modules/thunder_media/tests/src/Functional/FileRemoveButtonTest.php \Drupal\Tests\thunder_media\Functional\FileRemoveButtonTest::testRemoveButtonGone()
  5. 6.0.x modules/thunder_media/tests/src/Functional/FileRemoveButtonTest.php \Drupal\Tests\thunder_media\Functional\FileRemoveButtonTest::testRemoveButtonGone()
  6. 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\Functional

Code

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');
}