Initial Drupal 11 with DDEV setup

This commit is contained in:
gluebox
2025-10-08 11:39:17 -04:00
commit 89ef74b305
25344 changed files with 2599172 additions and 0 deletions

View File

@ -0,0 +1,44 @@
<?php
declare(strict_types=1);
namespace Drupal\Tests\{{ machine_name }}\Functional;
use Drupal\Tests\BrowserTestBase;
use PHPUnit\Framework\Attributes\Group;
/**
* Test description.
*/
#[Group('{{ machine_name }}')]
final class {{ class }} extends BrowserTestBase {
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'claro';
/**
* {@inheritdoc}
*/
protected static $modules = ['{{ machine_name }}'];
/**
* {@inheritdoc}
*/
protected function setUp(): void {
parent::setUp();
// Set up the test here.
}
/**
* Test callback.
*/
public function testSomething(): void {
$admin_user = $this->drupalCreateUser(['administer site configuration']);
$this->drupalLogin($admin_user);
$this->drupalGet('/admin/config/system/site-information');
$this->assertSession()->elementExists('xpath', '//h1[text() = "Basic site settings"]');
}
}