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,24 @@
<?php
declare(strict_types=1);
namespace Drupal\Tests;
/**
* Provides a method to enforce that requests will wait for the terminate event.
*/
trait WaitTerminateTestTrait {
/**
* Specify that subsequent requests must wait for the terminate event.
*
* The terminate event is fired after a response is sent to the user agent.
* Tests with assertions which operate on data computed during the terminate
* event need to enable this.
*/
protected function setWaitForTerminate(): void {
$this->setContainerParameter('drupal.test_wait_terminate', TRUE);
$this->rebuildContainer();
}
}