TaxonomyManagerConfigTest.php in Taxonomy Manager 8
File
src/Tests/TaxonomyManagerConfigTest.php
View source
<?php
namespace Drupal\taxonomy_manager\Tests;
use Drupal\simpletest\WebTestBase;
class TaxonomyManagerConfigTest extends WebTestBase {
public static $modules = [
'taxonomy_manager',
];
public function testTaxonomyManagerConfiguration() {
$user = $this
->drupalCreateUser([
'administer taxonomy',
]);
$this
->drupalLogin($user);
$edit = [];
$edit['taxonomy_manager_disable_mouseover'] = '1';
$edit['taxonomy_manager_pager_tree_page_size'] = '50';
$this
->drupalPostForm('admin/config/user-interface/taxonomy-manager-settings', $edit, $this
->t('Save configuration'));
$this
->assertResponse(200);
$this
->assertText($this
->t('The configuration options have been saved.'), "Saving configuration options successfully.");
}
}