Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
50
vendor/chi-teck/drupal-code-generator/templates/d8/test/web.twig
vendored
Normal file
50
vendor/chi-teck/drupal-code-generator/templates/d8/test/web.twig
vendored
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
<?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, t('Save configuration'));
|
||||
$this->assertText(t('The configuration options have been saved.'), 'Configuration options have been saved');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in a new issue