clean install

This commit is contained in:
matze committed 2024-12-10 15:08:16 +01:00
commit e14eb2d8fd
31193 files changed
+3555714

No files matched your search

@@ -0,0 +1,42 @@
<?php
namespace Drupal\FunctionalTests;
use Drupal\Tests\BrowserTestBase;
@trigger_error('\\Drupal\\FunctionalTests\\BrowserMissingDependentModuleMethodTest is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3418480', E_USER_DEPRECATED);
/**
* A fixture test class with requires annotation.
*
* This is a fixture class for
* \Drupal\FunctionalTests\BrowserTestBaseTest::testMethodRequiresModule().
*
* This test class should not be discovered by run-tests.sh, phpstan or phpunit.
*
* @group fixture
*
* @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no
* replacement.
*
* @see https://www.drupal.org/node/3418480
*/
class BrowserMissingDependentModuleMethodTest extends BrowserTestBase {
/**
* This method should be skipped since it requires a module that is not found.
*
* @requires module module_does_not_exist
*/
public function testRequiresModule(): void {
$this->fail('Running test with missing required module.');
}
/**
* Public access for checkRequirements() to avoid reflection.
*/
public function publicCheckRequirements() {
return parent::checkRequirements();
}
}
@@ -0,0 +1,44 @@
<?php
namespace Drupal\FunctionalTests;
use Drupal\Tests\BrowserTestBase;
@trigger_error('\\Drupal\\FunctionalTests\\BrowserMissingDependentModuleTest is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3418480', E_USER_DEPRECATED);
/**
* A fixture test class with requires annotation.
*
* This is a fixture class for
* \Drupal\FunctionalTests\BrowserTestBaseTest::testRequiresModule().
*
* This test class should not be discovered by run-tests.sh, phpstan or phpunit.
*
* @requires module module_does_not_exist
* @group fixture
*
* @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no
* replacement.
*
* @see https://www.drupal.org/node/3418480
*/
class BrowserMissingDependentModuleTest extends BrowserTestBase {
/**
* Placeholder test method.
*
* Depending on configuration, PHPUnit might fail a test if it has no test
* methods, so we must provide one. This method should never be executed.
*/
public function testRequiresModule(): void {
$this->fail('Running test with missing required module.');
}
/**
* Public access for checkRequirements() to avoid reflection.
*/
public function publicCheckRequirements() {
return parent::checkRequirements();
}
}
@@ -0,0 +1,40 @@
<?php
namespace Drupal\KernelTests;
@trigger_error('\\Drupal\\FunctionalTests\\KernelMissingDependentModuleMethodTest is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3418480', E_USER_DEPRECATED);
/**
* A fixture test class with requires annotation.
*
* This is a fixture class for
* \Drupal\KernelTests\KernelTestBaseTest::testRequiresModule().
*
* This test class should not be discovered by run-tests.sh, phpstan or phpunit.
*
* @group fixture
*
* @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no
* replacement.
*
* @see https://www.drupal.org/node/3418480
*/
class KernelMissingDependentModuleMethodTest extends KernelTestBase {
/**
* This method should be skipped since it requires a module that is not found.
*
* @requires module module_does_not_exist
*/
public function testRequiresModule(): void {
$this->fail('Running test with missing required module.');
}
/**
* Public access for checkRequirements() to avoid reflection.
*/
public function publicCheckRequirements() {
return parent::checkRequirements();
}
}
@@ -0,0 +1,42 @@
<?php
namespace Drupal\KernelTests;
@trigger_error('\\Drupal\\FunctionalTests\\KernelMissingDependentModuleTest is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3418480', E_USER_DEPRECATED);
/**
* A fixture test class with requires annotation.
*
* This is a fixture class for
* \Drupal\KernelTests\KernelTestBaseTest::testRequiresModule().
*
* This test class should not be discovered by run-tests.sh, phpstan or phpunit.
*
* @requires module module_does_not_exist
* @group fixture
*
* @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no
* replacement.
*
* @see https://www.drupal.org/node/3418480
*/
class KernelMissingDependentModuleTest extends KernelTestBase {
/**
* Placeholder test method.
*
* Depending on configuration, PHPUnit might fail a test if it has no test
* methods, so we must provide one. This method should never be executed.
*/
public function testRequiresModule(): void {
$this->fail('Running test with missing required module.');
}
/**
* Public access for checkRequirements() to avoid reflection.
*/
public function publicCheckRequirements() {
return parent::checkRequirements();
}
}
Binary file not shown.
@@ -0,0 +1,14 @@
<?php
namespace Drupal\Core\Database\Driver\CoreFake;
use Drupal\Driver\Database\fake\Connection as BaseConnection;
class Connection extends BaseConnection {
/**
* {@inheritdoc}
*/
public $driver = 'CoreFake';
}
@@ -0,0 +1,16 @@
<?php
namespace Drupal\Core\Database\Driver\CoreFake\Install;
use Drupal\Core\Database\Install\Tasks as InstallTasks;
class Tasks extends InstallTasks {
/**
* {@inheritdoc}
*/
public function name() {
return 'CoreFake';
}
}
@@ -0,0 +1,7 @@
<?php
namespace Drupal\Driver\Database\CoreFake;
use Drupal\Core\Database\Driver\CoreFake\Connection as CoreFakeConnection;
class Connection extends CoreFakeConnection {}
@@ -0,0 +1,9 @@
<?php
namespace Drupal\Driver\Database\CoreFake\Install;
use Drupal\Core\Database\Driver\CoreFake\Install\Tasks as BaseInstallTasks;
class Tasks extends BaseInstallTasks {
}
@@ -0,0 +1,167 @@
<?php
namespace Drupal\Driver\Database\fake;
use Drupal\Core\Database\Connection as CoreConnection;
use Drupal\Core\Database\ExceptionHandler;
use Drupal\Core\Database\Query\Condition;
use Drupal\Core\Database\Query\Delete;
use Drupal\Core\Database\Query\Insert;
use Drupal\Core\Database\Query\Merge;
use Drupal\Core\Database\Query\Select;
use Drupal\Core\Database\Query\Truncate;
use Drupal\Core\Database\Query\Update;
use Drupal\Core\Database\Query\Upsert;
use Drupal\Core\Database\StatementWrapper;
use Drupal\Core\Database\Transaction;
/**
* A fake Connection class for testing purposes.
*/
class Connection extends CoreConnection {
/**
* {@inheritdoc}
*/
protected $statementClass = NULL;
/**
* {@inheritdoc}
*/
protected $statementWrapperClass = StatementWrapper::class;
/**
* {@inheritdoc}
*/
protected $identifierQuotes = ['"', '"'];
/**
* Public property so we can test driver loading mechanism.
*
* @var string
* @see driver().
*/
public $driver = 'fake';
/**
* {@inheritdoc}
*/
public function queryRange($query, $from, $count, array $args = [], array $options = []) {
return NULL;
}
/**
* {@inheritdoc}
*/
public function driver() {
return $this->driver;
}
/**
* {@inheritdoc}
*/
public function databaseType() {
return 'fake';
}
/**
* {@inheritdoc}
*/
public function createDatabase($database) {}
/**
* {@inheritdoc}
*/
public function mapConditionOperator($operator) {
return NULL;
}
/**
* {@inheritdoc}
*/
public function nextId($existing_id = 0) {
@trigger_error('Drupal\Core\Database\Connection::nextId() is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Modules should use instead the keyvalue storage for the last used id. See https://www.drupal.org/node/3349345', E_USER_DEPRECATED);
return 0;
}
/**
* {@inheritdoc}
*/
public function exceptionHandler() {
return new ExceptionHandler();
}
/**
* {@inheritdoc}
*/
public function select($table, $alias = NULL, array $options = []) {
return new Select($this, $table, $alias, $options);
}
/**
* {@inheritdoc}
*/
public function insert($table, array $options = []) {
return new Insert($this, $table, $options);
}
/**
* {@inheritdoc}
*/
public function merge($table, array $options = []) {
return new Merge($this, $table, $options);
}
/**
* {@inheritdoc}
*/
public function upsert($table, array $options = []) {
return new Upsert($this, $table, $options);
}
/**
* {@inheritdoc}
*/
public function update($table, array $options = []) {
return new Update($this, $table, $options);
}
/**
* {@inheritdoc}
*/
public function delete($table, array $options = []) {
return new Delete($this, $table, $options);
}
/**
* {@inheritdoc}
*/
public function truncate($table, array $options = []) {
return new Truncate($this, $table, $options);
}
/**
* {@inheritdoc}
*/
public function schema() {
if (empty($this->schema)) {
$this->schema = new Schema($this);
}
return $this->schema;
}
/**
* {@inheritdoc}
*/
public function condition($conjunction) {
return new Condition($conjunction, FALSE);
}
/**
* {@inheritdoc}
*/
public function startTransaction($name = '') {
return new Transaction($this, $name);
}
}
@@ -0,0 +1,16 @@
<?php
namespace Drupal\Driver\Database\fake\Install;
use Drupal\Core\Database\Install\Tasks as InstallTasks;
class Tasks extends InstallTasks {
/**
* {@inheritdoc}
*/
public function name() {
return 'fake';
}
}
@@ -0,0 +1,17 @@
<?php
namespace Drupal\core_fake\Driver\Database\CoreFake;
use Drupal\Driver\Database\fake\Connection as BaseConnection;
/**
* CoreFake implementation of \Drupal\Core\Database\Connection.
*/
class Connection extends BaseConnection {
/**
* {@inheritdoc}
*/
public $driver = 'CoreFake';
}
@@ -0,0 +1,19 @@
<?php
namespace Drupal\core_fake\Driver\Database\CoreFake\Install;
use Drupal\Core\Database\Install\Tasks as InstallTasks;
/**
* Specifies installation tasks for CoreFake.
*/
class Tasks extends InstallTasks {
/**
* {@inheritdoc}
*/
public function name() {
return 'CoreFake';
}
}
@@ -0,0 +1,12 @@
<?php
namespace Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses;
use Drupal\Core\Database\Query\Condition as QueryCondition;
/**
* CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Condition.
*/
class Condition extends QueryCondition {
}
@@ -0,0 +1,97 @@
<?php
namespace Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses;
use Drupal\Driver\Database\fake\Connection as BaseConnection;
/**
* CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Connection.
*/
class Connection extends BaseConnection {
/**
* {@inheritdoc}
*/
public $driver = 'CoreFakeWithAllCustomClasses';
/**
* {@inheritdoc}
*/
public function exceptionHandler() {
return new ExceptionHandler();
}
/**
* {@inheritdoc}
*/
public function select($table, $alias = NULL, array $options = []) {
return new Select($this, $table, $alias, $options);
}
/**
* {@inheritdoc}
*/
public function insert($table, array $options = []) {
return new Insert($this, $table, $options);
}
/**
* {@inheritdoc}
*/
public function merge($table, array $options = []) {
return new Merge($this, $table, $options);
}
/**
* {@inheritdoc}
*/
public function upsert($table, array $options = []) {
return new Upsert($this, $table, $options);
}
/**
* {@inheritdoc}
*/
public function update($table, array $options = []) {
return new Update($this, $table, $options);
}
/**
* {@inheritdoc}
*/
public function delete($table, array $options = []) {
return new Delete($this, $table, $options);
}
/**
* {@inheritdoc}
*/
public function truncate($table, array $options = []) {
return new Truncate($this, $table, $options);
}
/**
* {@inheritdoc}
*/
public function schema() {
if (empty($this->schema)) {
$this->schema = new Schema($this);
}
return $this->schema;
}
/**
* {@inheritdoc}
*/
public function condition($conjunction) {
return new Condition($conjunction, FALSE);
}
/**
* {@inheritdoc}
*/
public function startTransaction($name = '') {
return new Transaction($this, $name);
}
}
@@ -0,0 +1,12 @@
<?php
namespace Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses;
use Drupal\Core\Database\Query\Delete as QueryDelete;
/**
* CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Delete.
*/
class Delete extends QueryDelete {
}
@@ -0,0 +1,12 @@
<?php
namespace Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses;
use Drupal\Core\Database\ExceptionHandler as BaseExceptionHandler;
/**
* CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\ExceptionHandler.
*/
class ExceptionHandler extends BaseExceptionHandler {
}
@@ -0,0 +1,12 @@
<?php
namespace Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses;
use Drupal\Core\Database\Query\Insert as QueryInsert;
/**
* CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Insert.
*/
class Insert extends QueryInsert {
}
@@ -0,0 +1,19 @@
<?php
namespace Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses\Install;
use Drupal\Core\Database\Install\Tasks as InstallTasks;
/**
* Specifies installation tasks for CoreFakeWithAllCustomClasses.
*/
class Tasks extends InstallTasks {
/**
* {@inheritdoc}
*/
public function name() {
return 'CoreFakeWithAllCustomClasses';
}
}
@@ -0,0 +1,12 @@
<?php
namespace Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses;
use Drupal\Core\Database\Query\Merge as QueryMerge;
/**
* CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Merge.
*/
class Merge extends QueryMerge {
}
@@ -0,0 +1,12 @@
<?php
namespace Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses;
use Drupal\Core\Database\Query\PagerSelectExtender as QueryPagerSelectExtender;
/**
* CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Query\PagerSelectExtender.
*/
class PagerSelectExtender extends QueryPagerSelectExtender {
}
@@ -0,0 +1,77 @@
<?php
namespace Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses;
use Drupal\Core\Database\Schema as DatabaseSchema;
/**
* CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Schema.
*/
class Schema extends DatabaseSchema {
/**
* {@inheritdoc}
*/
public function getFieldTypeMap() {}
/**
* {@inheritdoc}
*/
public function renameTable($table, $new_name) {}
/**
* {@inheritdoc}
*/
public function dropTable($table) {}
/**
* {@inheritdoc}
*/
public function addField($table, $field, $spec, $keys_new = []) {}
/**
* {@inheritdoc}
*/
public function dropField($table, $field) {}
/**
* {@inheritdoc}
*/
public function indexExists($table, $name) {}
/**
* {@inheritdoc}
*/
public function addPrimaryKey($table, $fields) {}
/**
* {@inheritdoc}
*/
public function dropPrimaryKey($table) {}
/**
* {@inheritdoc}
*/
public function addUniqueKey($table, $name, $fields) {}
/**
* {@inheritdoc}
*/
public function dropUniqueKey($table, $name) {}
/**
* {@inheritdoc}
*/
public function addIndex($table, $name, $fields, array $spec) {}
/**
* {@inheritdoc}
*/
public function dropIndex($table, $name) {}
/**
* {@inheritdoc}
*/
public function changeField($table, $field, $field_new, $spec, $keys_new = []) {}
}
@@ -0,0 +1,12 @@
<?php
namespace Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses;
use Drupal\search\SearchQuery as CoreSearchQuery;
/**
* CoreFakeWithAllCustomClasses implementation of \Drupal\search\SearchQuery.
*/
class SearchQuery extends CoreSearchQuery {
}
@@ -0,0 +1,12 @@
<?php
namespace Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses;
use Drupal\Core\Database\Query\Select as QuerySelect;
/**
* CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Select.
*/
class Select extends QuerySelect {
}
@@ -0,0 +1,12 @@
<?php
namespace Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses;
use Drupal\Core\Database\Query\TableSortExtender as QueryTableSortExtender;
/**
* CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Query\TableSortExtender.
*/
class TableSortExtender extends QueryTableSortExtender {
}
@@ -0,0 +1,12 @@
<?php
namespace Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses;
use Drupal\Core\Database\Transaction as DatabaseTransaction;
/**
* CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Transaction.
*/
class Transaction extends DatabaseTransaction {
}
@@ -0,0 +1,12 @@
<?php
namespace Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses;
use Drupal\Core\Database\Query\Truncate as QueryTruncate;
/**
* CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Truncate.
*/
class Truncate extends QueryTruncate {
}
@@ -0,0 +1,12 @@
<?php
namespace Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses;
use Drupal\Core\Database\Query\Update as QueryUpdate;
/**
* CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Update.
*/
class Update extends QueryUpdate {
}
@@ -0,0 +1,22 @@
<?php
namespace Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses;
use Drupal\Core\Database\Query\Upsert as QueryUpsert;
/**
* CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Upsert.
*/
class Upsert extends QueryUpsert {
/**
* {@inheritdoc}
*/
public function execute() {}
/**
* {@inheritdoc}
*/
public function __toString() {}
}
@@ -0,0 +1,12 @@
<?php
namespace Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses;
use Drupal\search\ViewsSearchQuery as CoreViewsSearchQuery;
/**
* CoreFakeWithAllCustomClasses implementation of \Drupal\search\ViewsSearchQuery.
*/
class ViewsSearchQuery extends CoreViewsSearchQuery {
}
@@ -0,0 +1,27 @@
_meta:
version: '1.0'
entity_type: file
uuid: a6b79928-838f-44bd-a8f0-44c2fff9e4cc
default_langcode: en
default:
uid:
-
target_id: 1
filename:
-
value: druplicon-different.png
uri:
-
value: 'public://2024-03/druplicon.png'
filemime:
-
value: text/plain
filesize:
-
value: 11
status:
-
value: true
created:
-
value: 1711121742
@@ -0,0 +1,24 @@
_meta:
version: '1.0'
entity_type: block_content
uuid: d9b72b2f-a5ea-4a3f-b10c-28deb7b3b7bf
bundle: basic
default_langcode: en
default:
status:
-
value: true
info:
-
value: 'Useful Info'
reusable:
-
value: true
revision_translation_affected:
-
value: true
body:
-
value: "I'd love to put some useful info here."
format: plain_text
summary: ''
+1
View File
@@ -0,0 +1 @@
Not a PNG.
@@ -0,0 +1,27 @@
_meta:
version: '1.0'
entity_type: file
uuid: 23a7f61f-1db3-407d-a6dd-eb4731995c9f
default_langcode: en
default:
uid:
-
target_id: 1
filename:
-
value: druplicon-duplicate.png
uri:
-
value: 'public://2024-03/druplicon.png'
filemime:
-
value: image/png
filesize:
-
value: 3905
status:
-
value: true
created:
-
value: 1711121742
@@ -0,0 +1,27 @@
_meta:
version: '1.0'
entity_type: file
uuid: 2b8e0616-3ef0-4a91-8cfb-b31d9128f9f8
default_langcode: en
default:
uid:
-
target_id: 1
filename:
-
value: dce9cdc3-d9fc-4d37-849d-105e913bb5ad.png
uri:
-
value: 'public://2024-03/dce9cdc3-d9fc-4d37-849d-105e913bb5ad.png'
filemime:
-
value: image/png
filesize:
-
value: 1233169
status:
-
value: true
created:
-
value: 1711729897
@@ -0,0 +1,27 @@
_meta:
version: '1.0'
entity_type: file
uuid: 7fb09f9f-ba5f-4db4-82ed-aa5ccf7d425d
default_langcode: en
default:
uid:
-
target_id: 1
filename:
-
value: druplicon_copy.png
uri:
-
value: 'public://druplicon_copy.png'
filemime:
-
value: image/png
filesize:
-
value: 3905
status:
-
value: true
created:
-
value: 1711121742
@@ -0,0 +1,27 @@
_meta:
version: '1.0'
entity_type: file
uuid: d8404562-efcc-40e3-869e-40132d53fe0b
default_langcode: en
default:
uid:
-
target_id: 1
filename:
-
value: druplicon.png
uri:
-
value: 'public://2024-03/druplicon.png'
filemime:
-
value: image/png
filesize:
-
value: 3905
status:
-
value: true
created:
-
value: 1711121742
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

@@ -0,0 +1,38 @@
_meta:
version: '1.0'
entity_type: media
uuid: 344b943c-b231-4d73-9669-0b0a2be12aa5
bundle: image
default_langcode: en
depends:
d8404562-efcc-40e3-869e-40132d53fe0b: file
default:
revision_user:
-
target_id: 1
status:
-
value: true
uid:
-
target_id: 1
name:
-
value: druplicon.png
created:
-
value: 1711121695
revision_translation_affected:
-
value: true
path:
-
alias: ''
langcode: en
field_media_image:
-
entity: d8404562-efcc-40e3-869e-40132d53fe0b
alt: 'A Druplicon on a transparent background.'
title: ''
width: 88
height: 100
@@ -0,0 +1,38 @@
_meta:
version: '1.0'
entity_type: menu_link_content
uuid: 3434bd5a-d2cd-4f26-bf79-a7f6b951a21b
bundle: menu_link_content
default_langcode: en
depends:
e1714f23-70c0-4493-8e92-af1901771921: node
default:
enabled:
-
value: true
title:
-
value: 'Test Article'
menu_name:
-
value: main
link:
-
target_uuid: e1714f23-70c0-4493-8e92-af1901771921
title: ''
options: { }
external:
-
value: false
rediscover:
-
value: false
weight:
-
value: 0
expanded:
-
value: false
revision_translation_affected:
-
value: true
@@ -0,0 +1,83 @@
_meta:
version: '1.0'
entity_type: node
uuid: 2d3581c3-92c7-4600-8991-a0d4b3741198
bundle: article
default_langcode: en
depends:
94503467-be7f-406c-9795-fc25baa22203: user
default:
revision_uid:
-
target_id: 1
status:
-
value: true
uid:
-
entity: 94503467-be7f-406c-9795-fc25baa22203
title:
-
value: 'Lost in translation'
created:
-
value: 1711976268
promote:
-
value: true
sticky:
-
value: false
path:
-
alias: ''
langcode: en
content_translation_source:
-
value: und
content_translation_outdated:
-
value: false
body:
-
value: "Here's the English version."
format: plain_text
summary: ''
translations:
fr:
status:
-
value: true
uid:
-
target_id: 1
title:
-
value: 'Perdu en traduction'
created:
-
value: 1711976291
promote:
-
value: true
sticky:
-
value: false
revision_translation_affected:
-
value: true
path:
-
alias: ''
langcode: fr
content_translation_source:
-
value: en
content_translation_outdated:
-
value: false
body:
-
value: "Içi c'est la version français."
format: plain_text
summary: ''
@@ -0,0 +1,44 @@
_meta:
version: '1.0'
entity_type: node
uuid: 7f1dd75a-0be2-4d3b-be5d-9d1a868b9267
bundle: page
default_langcode: en
depends:
# This user does not actually exist; this lets us test that the node
# will be assigned to user 1 during the import.
e2b1b3fb-27ea-41ec-b70f-dbf2907fb658: user
default:
revision_uid:
-
target_id: 1
status:
-
value: true
uid:
-
entity: e2b1b3fb-27ea-41ec-b70f-dbf2907fb658
title:
-
value: 'No Owner'
created:
-
value: 1711638565
promote:
-
value: false
sticky:
-
value: false
revision_translation_affected:
-
value: true
path:
-
alias: ''
langcode: en
body:
-
value: 'This page was authored by a non-existent user.'
format: plain_text
summary: ''
@@ -0,0 +1,46 @@
_meta:
version: '1.0'
entity_type: node
uuid: e1714f23-70c0-4493-8e92-af1901771921
bundle: article
default_langcode: en
depends:
94503467-be7f-406c-9795-fc25baa22203: user
550f86ad-aa11-4047-953f-636d42889f85: taxonomy_term
default:
revision_uid:
-
target_id: 1
status:
-
value: true
uid:
-
entity: 94503467-be7f-406c-9795-fc25baa22203
title:
-
value: 'Test Article'
created:
-
value: 1711476803
promote:
-
value: true
sticky:
-
value: false
revision_translation_affected:
-
value: true
path:
-
alias: /test-article
langcode: en
body:
-
value: 'Crikey it works!'
format: plain_text
summary: ''
field_tags:
-
entity: 550f86ad-aa11-4047-953f-636d42889f85
@@ -0,0 +1,31 @@
_meta:
version: '1.0'
entity_type: taxonomy_term
uuid: 550f86ad-aa11-4047-953f-636d42889f85
bundle: tags
default_langcode: en
default:
status:
-
value: true
name:
-
value: 'Default Content'
weight:
-
value: 0
parent:
-
target_id: 0
revision_translation_affected:
-
value: true
path:
-
alias: ''
langcode: en
field_serialized_stuff:
-
value:
- Hi
- there!
@@ -0,0 +1,43 @@
_meta:
version: '1.0'
entity_type: user
uuid: 94503467-be7f-406c-9795-fc25baa22203
default_langcode: en
default:
preferred_langcode:
-
value: en
preferred_admin_langcode:
-
value: en
name:
-
value: 'Naomi Malone'
pass:
-
# cspell:disable
value: $2y$10$3GlpQmjbJ9raJNQ.JZmg/OVS7avJ7KPQxucunwovUtOvpKbe3k8lK
# cspell:enable
existing: ''
pre_hashed: false
mail:
-
value: [email protected]
timezone:
-
value: UTC
status:
-
value: true
created:
-
value: 1711125883
access:
-
value: 0
login:
-
value: 0
init:
-
value: [email protected]
+2
View File
@@ -0,0 +1,2 @@
<?php
// phpcs:ignoreFile
+5
View File
@@ -0,0 +1,5 @@
These files are useful in tests that upload files or otherwise need to
manipulate files, in which case they are copied to the files directory as
specified in the site settings. Dummy files can also be generated by tests in
order to save space.
+1
View File
@@ -0,0 +1 @@
<h1>Test HTML</h1>
+1
View File
@@ -0,0 +1 @@
<h1>Test HTML</h1>
Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 964 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 B

+1
View File
@@ -0,0 +1 @@
invalid image file
Whitespace-only changes.
+3
View File
@@ -0,0 +1,3 @@
<script>
alert('JavaScript was executed!');
</script>
+3
View File
@@ -0,0 +1,3 @@
<script>
alert('JavaScript was executed!');
</script>
+4
View File
@@ -0,0 +1,4 @@
<?php
// phpcs:ignoreFile
print 'PHP was executed!';
?>
+3
View File
@@ -0,0 +1,3 @@
<?php
// phpcs:ignoreFile
print 'PHP was executed!';
+1
View File
@@ -0,0 +1 @@
SELECT invalid_field FROM {invalid_table}
+1
View File
@@ -0,0 +1 @@
SELECT invalid_field FROM {invalid_table}
Whitespace-only changes.
Whitespace-only changes.
@@ -0,0 +1,4 @@
# This file exists to prove that
# \Drupal\Core\StringTranslation\Translator\FileTranslation::findTranslationFiles()
# does not find it. See
# \Drupal\KernelTests\Core\Installer\InstallerLanguageTest::testInstallerTranslationFiles()
Whitespace-only changes.
+34
View File
@@ -0,0 +1,34 @@
<?php
declare(strict_types=1);
namespace com\example\PluginNamespace;
use Drupal\Component\Plugin\Attribute\Plugin;
/**
* Custom plugin attribute.
*/
#[\Attribute(\Attribute::TARGET_CLASS)]
class CustomPlugin extends Plugin {
/**
* Constructs a CustomPlugin attribute object.
*
* @param string $id
* The attribute class ID.
* @param string $title
* The title.
*/
public function __construct(
public readonly string $id,
public readonly string $title,
) {}
}
/**
* Custom plugin attribute.
*/
#[\Attribute(\Attribute::TARGET_CLASS)]
class CustomPlugin2 extends Plugin {}
@@ -0,0 +1,19 @@
<?php
declare(strict_types=1);
namespace com\example\PluginNamespace;
use Drupal\Component\Plugin\Attribute\Plugin;
/**
* Provides a custom test plugin.
*/
#[Plugin(
id: "discovery_test_1",
)]
#[CustomPlugin(
id: "discovery_test_1",
title: "Discovery test plugin"
)]
class AttributeDiscoveryTest1 {}
@@ -0,0 +1,16 @@
<?php
declare(strict_types=1);
namespace com\example\PluginNamespace;
use Drupal\a_module_that_does_not_exist\Plugin\Custom;
/**
* Provides a custom test plugin that extends from a missing dependency.
*/
#[CustomPlugin(
id: "discovery_test_2",
title: "Discovery test plugin 2"
)]
class AttributeDiscoveryTest2 extends Custom {}
@@ -0,0 +1,6 @@
name: 'Base theme and views'
type: 'Testing'
install:
- test_subsubtheme
- node
- views
@@ -0,0 +1,13 @@
name: 'Config actions'
type: 'Testing'
install:
- config_test
config:
actions:
config_test.dynamic.recipe:
createIfNotExists:
label: 'Created by recipe'
setProtectedProperty: 'Set by recipe'
config_test.system:
simpleConfigUpdate:
foo: 'not bar'
@@ -0,0 +1,9 @@
name: Recipe with direct dependency present
type: 'Testing'
install:
- node
config:
actions:
node.settings:
simpleConfigUpdate:
use_admin_theme: true
@@ -0,0 +1,9 @@
name: Recipe with first level indirect dependency
type: 'Testing'
recipes:
- level_2
config:
actions:
node.settings:
simpleConfigUpdate:
use_admin_theme: true
@@ -0,0 +1,9 @@
name: Recipe with second level indirect dependency
type: 'Testing'
recipes:
- level_1
config:
actions:
node.settings:
simpleConfigUpdate:
use_admin_theme: true
@@ -0,0 +1,4 @@
name: First level sub recipe
type: 'Testing'
recipes:
- level_2
@@ -0,0 +1,4 @@
name: Second level sub recipe
type: 'Testing'
install:
- node
@@ -0,0 +1,9 @@
name: 'Config from module'
type: 'Testing'
install:
- config_test
config:
import:
config_test:
- config_test.dynamic.dotted.default
- config_test.dynamic.override
@@ -0,0 +1,6 @@
id: dotted.default
label: 'Provided by recipe'
weight: 0
protected_property: Default
# Intentionally commented out to verify default status behavior.
# status: 1
@@ -0,0 +1,2 @@
foo: bar
404: foo
@@ -0,0 +1,11 @@
name: 'Config from module and recipe'
type: 'Testing'
install:
- config_test
- shortcut
- system
config:
import:
config_test: '*'
shortcut:
- shortcut.set.default
@@ -0,0 +1,19 @@
name: Config rollback exception
install:
- filter
- media
config:
import:
filter: '*'
media: '*'
actions:
filter.format.plain_text:
setFilterConfig:
instance_id: media_embed
configuration: []
system.image:
# This will cause a validation error, which will trigger a rollback.
# The rollback should fail, since the Media module can't be uninstalled
# now that the plain_text format is using one of its filters.
simpleConfigUpdate:
non_existent_key: whatever!
@@ -0,0 +1,10 @@
name: 'Config wildcard'
type: 'Testing'
install:
- config_test
- shortcut
- system
config:
import:
config_test: '*'
shortcut: ~
@@ -0,0 +1 @@
use_admin_theme: true
@@ -0,0 +1,9 @@
langcode: en
status: true
name: 'Test content type'
type: test
description: 'Test content type from a recipe'
help: null
new_revision: true
preview_mode: 1
display_submitted: true
@@ -0,0 +1,5 @@
name: 'Install node with config'
type: 'Content type'
install:
- node
- drupal:text
@@ -0,0 +1,5 @@
name: 'Install two modules'
type: 'Content type'
install:
- node
- text
@@ -0,0 +1,14 @@
langcode: en
status: true
dependencies:
config:
# Depend on the valid date format in order to ensure it is imported first,
# which means we can ensure it was rolled back when this date format raises
# a validation error.
- core.date_format.valid
id: invalid
# Null isn't a valid value for the label, so this should raise a validation
# error.
label: null
locked: false
pattern: 'F j, Y'
@@ -0,0 +1,7 @@
langcode: en
status: true
dependencies: { }
id: valid
label: 'Valid date format'
locked: false
pattern: 'F j, Y'
@@ -0,0 +1,2 @@
name: 'Invalid config'
type: 'Testing'
@@ -0,0 +1,3 @@
name: 'No extensions'
description: 'A recipe description'
type: 'Testing'
@@ -0,0 +1,4 @@
name: 'Recipe depending on an invalid recipe'
type: 'Testing'
recipes:
- invalid_config
@@ -0,0 +1,5 @@
name: 'Recipe depending on first installing modules, then a recipe with invalid config'
type: 'Testing'
recipes:
- install_two_modules
- invalid_config
Loaded 100 of 31193 files, more files were not shown because too many files have changed in this diff. Show more