FileRemoveButtonTest.php in Thunder 8.5
Same filename and directory in other branches
- 8.2 modules/thunder_media/tests/src/Functional/FileRemoveButtonTest.php
- 8.3 modules/thunder_media/tests/src/Functional/FileRemoveButtonTest.php
- 8.4 modules/thunder_media/tests/src/Functional/FileRemoveButtonTest.php
- 6.2.x modules/thunder_media/tests/src/Functional/FileRemoveButtonTest.php
- 6.0.x modules/thunder_media/tests/src/Functional/FileRemoveButtonTest.php
- 6.1.x modules/thunder_media/tests/src/Functional/FileRemoveButtonTest.php
Namespace
Drupal\Tests\thunder_media\FunctionalFile
modules/thunder_media/tests/src/Functional/FileRemoveButtonTest.phpView source
<?php
namespace Drupal\Tests\thunder_media\Functional;
use Drupal\Tests\thunder\Functional\ThunderTestBase;
/**
* Tests for transliteration of file names.
*
* @group Thunder
*/
class FileRemoveButtonTest extends ThunderTestBase {
/**
* Modules to enable.
*
* @var array
*/
public static $modules = [
'thunder_testing_demo',
'thunder_workflow',
];
/**
* Test for transliteration of file name.
*/
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');
}
}
Classes
Name | Description |
---|---|
FileRemoveButtonTest | Tests for transliteration of file names. |