Initial Drupal 11 with DDEV setup
This commit is contained in:
@ -0,0 +1,13 @@
|
||||
cache_strings: true
|
||||
translate_english: false
|
||||
javascript:
|
||||
directory: languages
|
||||
translation:
|
||||
use_source: remote_and_local
|
||||
default_filename: '%project-%version.%language.po'
|
||||
default_server_pattern: 'https://ftp.drupal.org/files/translations/%core/%project/%project-%version.%language.po'
|
||||
overwrite_customized: false
|
||||
overwrite_not_customized: true
|
||||
update_interval_days: 0
|
||||
path: ''
|
||||
import_enabled: false
|
||||
@ -0,0 +1,5 @@
|
||||
name: 'Drupal system cross profile test'
|
||||
type: module
|
||||
description: 'Support module for testing that a module in one profile can be reused in another profile.'
|
||||
package: Testing
|
||||
version: VERSION
|
||||
@ -0,0 +1,5 @@
|
||||
name: 'Drupal system listing compatible test'
|
||||
type: module
|
||||
description: 'Support module for testing the drupal_system_listing function.'
|
||||
package: Testing
|
||||
version: VERSION
|
||||
@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Drupal\Tests\drupal_system_listing_compatible_test\Kernel;
|
||||
|
||||
use Drupal\KernelTests\KernelTestBase;
|
||||
|
||||
/**
|
||||
* Verifies that tests in installation profile modules are found.
|
||||
*
|
||||
* @group drupal_system_listing_compatible_test
|
||||
*/
|
||||
class SystemListingCrossProfileCompatibleTest extends KernelTestBase {
|
||||
|
||||
/**
|
||||
* Attempt to enable a module from the Testing profile.
|
||||
*
|
||||
* This test uses the Minimal profile, but enables a module from the Testing
|
||||
* profile to confirm that a different profile can be used for running tests.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected static $modules = ['drupal_system_cross_profile_test'];
|
||||
|
||||
/**
|
||||
* Use the Minimal profile.
|
||||
*
|
||||
* This test needs to use a different installation profile than the test which
|
||||
* asserts that this test is found.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $profile = 'minimal';
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function setUp(): void {
|
||||
parent::setUp();
|
||||
|
||||
$this->setInstallProfile($this->profile);
|
||||
}
|
||||
|
||||
/**
|
||||
* Non-empty test* method required to executed the test case class.
|
||||
*/
|
||||
public function testSystemListing() {
|
||||
/** @var \Drupal\Core\Extension\ModuleHandlerInterface $module_handler */
|
||||
$module_handler = $this->container->get('module_handler');
|
||||
$this->assertTrue($module_handler->moduleExists('drupal_system_cross_profile_test'), 'Module installed from different profile');
|
||||
}
|
||||
|
||||
}
|
||||
10
web/core/profiles/tests/testing/testing.info.yml
Normal file
10
web/core/profiles/tests/testing/testing.info.yml
Normal file
@ -0,0 +1,10 @@
|
||||
name: Testing
|
||||
type: profile
|
||||
description: 'Minimal profile for running tests. Includes absolutely required modules only.'
|
||||
version: VERSION
|
||||
hidden: true
|
||||
install:
|
||||
# Enable page_cache and dynamic_page_cache in testing, to ensure that as many
|
||||
# tests as possible run with them enabled.
|
||||
- drupal:page_cache
|
||||
- dynamic_page_cache
|
||||
Reference in New Issue
Block a user