
| Current Path : /var/www/html/musik/vendor/chi-teck/drupal-code-generator/templates/d8/test/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/musik/vendor/chi-teck/drupal-code-generator/templates/d8/test/web.twig |
<?php
namespace Drupal\{{ machine_name }}\Tests;
use Drupal\simpletest\WebTestBase;
/**
* Tests site configuration.
*
* @group {{ machine_name }}
*/
class {{ class }} extends WebTestBase {
/**
* Modules to enable.
*
* @var array
*/
public static $modules = [
'node',
'field',
'contact',
'views',
'taxonomy',
];
/**
* {@inheritdoc}
*/
protected function setUp() {
parent::setUp();
$user = $this->drupalCreateUser(['administer site configuration']);
$this->drupalLogin($user);
}
/**
* Test site information form.
*/
public function testFieldStorageSettingsForm() {
$edit = [
'site_name' => 'Drupal',
'site_slogan' => 'Community plumbing',
'site_mail' => 'admin@example.local',
'site_frontpage' => '/user',
];
$this->drupalPostForm('admin/config/system/site-information', $edit, 'Save configuration');
$this->assertText('The configuration options have been saved.', 'Configuration options have been saved');
}
}