From 9eae24d84486d67b08695c8dc583e5c285d23427 Mon Sep 17 00:00:00 2001 From: Pantheon Automation Date: Wed, 4 May 2016 14:35:41 -0700 Subject: [PATCH] Update to Drupal 8.1.1. For more information, see https://www.drupal.org/node/2718713 --- core/CHANGELOG.txt | 19 +- core/MAINTAINERS.txt | 1 + core/composer.json | 4 +- core/core.services.yml | 5 + core/includes/bootstrap.inc | 2 +- core/includes/common.inc | 3 +- core/includes/form.inc | 7 +- core/includes/install.core.inc | 6 +- core/includes/install.inc | 2 +- core/includes/theme.inc | 31 +- core/lib/Drupal.php | 2 +- .../Bridge/ZfExtensionManagerSfContainer.php | 8 +- .../Component/Datetime/DateTimePlus.php | 2 +- core/lib/Drupal/Component/Diff/Diff.php | 1 - .../Drupal/Component/Diff/DiffFormatter.php | 2 +- .../Component/Diff/Engine/DiffEngine.php | 14 +- core/lib/Drupal/Component/Diff/MappedDiff.php | 1 - .../Component/Discovery/YamlDiscovery.php | 1 - .../Component/Gettext/PoStreamReader.php | 2 +- .../Component/PhpStorage/FileStorage.php | 4 +- .../Component/Render/FormattableMarkup.php | 4 +- core/lib/Drupal/Component/Utility/Random.php | 2 +- .../Drupal/Component/Utility/UrlHelper.php | 1 - core/lib/Drupal/Core/Access/AccessResult.php | 2 +- core/lib/Drupal/Core/Ajax/DataCommand.php | 1 - core/lib/Drupal/Core/AppRootFactory.php | 1 - .../Core/Archiver/ArchiverException.php | 1 - core/lib/Drupal/Core/Archiver/Zip.php | 2 +- core/lib/Drupal/Core/Asset/AssetResolver.php | 2 +- .../Core/Asset/CssCollectionGrouper.php | 9 +- .../Core/Asset/CssCollectionOptimizer.php | 10 - core/lib/Drupal/Core/Asset/CssOptimizer.php | 21 +- .../Drupal/Core/Asset/JsCollectionGrouper.php | 7 +- .../Core/Asset/JsCollectionOptimizer.php | 6 +- .../Core/Asset/JsCollectionRenderer.php | 2 +- core/lib/Drupal/Core/Asset/JsOptimizer.php | 2 +- .../Cache/Context/PathParentCacheContext.php | 41 ++ .../Drupal/Core/Config/ConfigCrudEvent.php | 1 - core/lib/Drupal/Core/Config/ConfigFactory.php | 2 +- .../lib/Drupal/Core/Config/ConfigImporter.php | 6 +- .../Config/ConfigModuleOverridesEvent.php | 1 - .../Config/Entity/ConfigDependencyManager.php | 10 +- .../Config/Entity/ConfigEntityStorage.php | 26 +- .../Core/Config/ExtensionInstallStorage.php | 1 - .../Drupal/Core/Config/StorableConfigBase.php | 6 +- .../Core/Controller/ControllerResolver.php | 2 +- .../Core/Database/DatabaseException.php | 1 - .../Core/Database/Driver/sqlite/Select.php | 2 +- core/lib/Drupal/Core/Database/Log.php | 4 +- .../lib/Drupal/Core/Database/Query/Select.php | 2 +- .../Drupal/Core/Datetime/DateFormatter.php | 6 +- core/lib/Drupal/Core/Datetime/DateHelper.php | 1 - .../Core/Datetime/Element/DateElementBase.php | 1 - .../Drupal/Core/Datetime/Element/Datelist.php | 15 +- .../Compiler/ProxyServicesPass.php | 2 +- .../DependencyInjection/ContainerBuilder.php | 1 + .../DependencyInjection/YamlFileLoader.php | 1 + core/lib/Drupal/Core/DrupalKernel.php | 23 +- .../Controller/EntityListController.php | 1 - .../Display/EntityFormDisplayInterface.php | 2 +- core/lib/Drupal/Core/Entity/EntityManager.php | 2 +- .../Drupal/Core/Entity/Query/QueryBase.php | 2 +- .../Drupal/Core/Entity/Query/Sql/Tables.php | 41 +- .../Core/Entity/Sql/DefaultTableMapping.php | 2 +- .../Entity/Sql/SqlContentEntityStorage.php | 2 +- core/lib/Drupal/Core/Entity/entity.api.php | 16 +- .../EntityRouteProviderSubscriber.php | 1 - .../Core/Executable/ExecutablePluginBase.php | 1 - .../Core/Extension/InfoParserInterface.php | 1 - .../Extension/ModuleInstallerInterface.php | 1 - core/lib/Drupal/Core/Extension/module.api.php | 3 + .../EntityReferenceEntityFormatter.php | 58 +- .../Plugin/Field/FieldType/BooleanItem.php | 1 - core/lib/Drupal/Core/Form/FormBuilder.php | 2 +- .../Core/Http/TrustedHostsRequestFactory.php | 4 +- .../Installer/Form/SelectLanguageForm.php | 2 +- .../Core/Installer/Form/SelectProfileForm.php | 2 +- .../Core/Installer/Form/SiteConfigureForm.php | 2 +- .../Drupal/Core/Installer/InstallerKernel.php | 13 + .../KeyValueExpirableFactory.php | 1 - .../Core/KeyValueStore/KeyValueFactory.php | 1 - .../KeyValueFactoryInterface.php | 1 - .../lib/Drupal/Core/Menu/LocalTaskManager.php | 2 +- .../Core/PageCache/DefaultRequestPolicy.php | 6 +- .../ResponsePolicy/DenyNoCacheRoutes.php | 1 - .../Core/Password/PhpassHashedPassword.php | 2 +- core/lib/Drupal/Core/Queue/QueueFactory.php | 1 - .../Drupal/Core/Render/Element/Actions.php | 2 +- .../lib/Drupal/Core/Render/Element/Button.php | 7 +- .../Drupal/Core/Render/Element/Checkbox.php | 2 +- .../Drupal/Core/Render/Element/Checkboxes.php | 4 +- core/lib/Drupal/Core/Render/Element/Color.php | 2 +- .../Drupal/Core/Render/Element/Container.php | 4 +- core/lib/Drupal/Core/Render/Element/Date.php | 10 +- .../Drupal/Core/Render/Element/Details.php | 4 +- core/lib/Drupal/Core/Render/Element/Email.php | 2 +- .../Drupal/Core/Render/Element/Fieldset.php | 4 +- .../lib/Drupal/Core/Render/Element/Number.php | 2 +- .../Drupal/Core/Render/Element/Password.php | 2 +- .../Core/Render/Element/PasswordConfirm.php | 6 +- core/lib/Drupal/Core/Render/Element/Radio.php | 8 +- .../lib/Drupal/Core/Render/Element/Radios.php | 4 +- core/lib/Drupal/Core/Render/Element/Range.php | 2 +- .../lib/Drupal/Core/Render/Element/Search.php | 2 +- .../lib/Drupal/Core/Render/Element/Select.php | 10 +- core/lib/Drupal/Core/Render/Element/Table.php | 14 +- .../Core/Render/Element/Tableselect.php | 22 +- core/lib/Drupal/Core/Render/Element/Tel.php | 2 +- .../Drupal/Core/Render/Element/Textarea.php | 2 +- .../Drupal/Core/Render/Element/Textfield.php | 2 +- core/lib/Drupal/Core/Render/Element/Url.php | 2 +- .../Core/Render/Element/VerticalTabs.php | 8 +- .../lib/Drupal/Core/Render/Element/Weight.php | 2 +- .../Core/Render/PlaceholderingRenderCache.php | 10 + core/lib/Drupal/Core/Render/Renderer.php | 4 +- .../Drupal/Core/Routing/AccessAwareRouter.php | 1 - .../lib/Drupal/Core/Routing/CompiledRoute.php | 2 +- .../lib/Drupal/Core/Routing/RouteCompiler.php | 2 +- .../lib/Drupal/Core/Routing/RouteProvider.php | 8 +- core/lib/Drupal/Core/Routing/UrlGenerator.php | 1 - .../Drupal/Core/Session/AccountInterface.php | 2 +- core/lib/Drupal/Core/SitePathFactory.php | 1 - .../Core/StackMiddleware/KernelPreHandle.php | 1 - .../StackMiddleware/NegotiationMiddleware.php | 2 +- .../StreamWrapper/LocalReadOnlyStream.php | 4 +- .../Core/StreamWrapper/ReadOnlyStream.php | 4 +- .../Core/Template/Loader/StringLoader.php | 2 +- .../Drupal/Core/Template/TwigExtension.php | 6 +- .../Core/Theme/ThemeManagerInterface.php | 4 +- .../Plugin/DataType/DateTimeIso8601.php | 1 - .../Validation/RecursiveValidator.php | 2 +- core/lib/Drupal/Core/Url.php | 66 +-- .../action/src/Plugin/Action/EmailAction.php | 3 +- core/modules/aggregator/aggregator.module | 2 +- .../src/Tests/ItemCacheTagsTest.php | 3 +- .../tests/src/Kernel/AggregatorTitleTest.php | 2 +- core/modules/big_pipe/big_pipe.services.yml | 2 +- core/modules/big_pipe/src/Render/BigPipe.php | 21 +- .../Render/Placeholder/BigPipeStrategy.php | 9 +- .../src/Tests/BigPipePlaceholderTestCases.php | 3 +- .../big_pipe/src/Tests/BigPipeTest.php | 2 +- .../src/BigPipeTestController.php | 3 +- .../Placeholder/BigPipeStrategyTest.php | 26 +- .../block/src/Plugin/migrate/source/Block.php | 2 +- .../block/src/Tests/BlockLanguageTest.php | 3 +- .../Update/BlockContextMappingUpdateTest.php | 2 +- .../src/Plugin/Block/TestAccessBlock.php | 1 - .../block_content/block_content.module | 2 +- .../src/Tests/BlockContentTestBase.php | 2 +- .../Tests/BlockContentTranslationUITest.php | 4 +- .../src/Tests/BlockContentTypeTest.php | 2 +- .../modules/book/src/BookManagerInterface.php | 6 +- .../book/src/Form/BookSettingsForm.php | 1 - core/modules/book/src/Tests/BookTest.php | 4 +- .../breakpoint/src/BreakpointManager.php | 2 +- core/modules/ckeditor/ckeditor.admin.inc | 2 +- .../src/Plugin/CKEditorPlugin/Internal.php | 11 +- .../src/Unit/CKEditorPluginManagerTest.php | 2 +- core/modules/color/color.module | 4 +- core/modules/comment/src/CommentForm.php | 2 +- .../comment/src/CommentLinkBuilder.php | 2 +- .../src/CommentLinkBuilderInterface.php | 2 +- .../modules/comment/src/CommentStatistics.php | 2 +- core/modules/comment/src/CommentTypeForm.php | 2 +- core/modules/comment/src/Entity/Comment.php | 2 +- .../CommentDefaultFormatter.php | 2 +- .../comment/src/Plugin/views/field/Depth.php | 2 +- .../comment/src/Tests/CommentAdminTest.php | 4 +- .../src/Tests/CommentAnonymousTest.php | 2 +- .../src/Tests/CommentCacheTagsTest.php | 2 +- .../comment/src/Tests/CommentLanguageTest.php | 2 +- .../comment/src/Tests/CommentNonNodeTest.php | 2 +- .../comment/src/Tests/CommentPreviewTest.php | 4 +- .../comment/src/Tests/CommentTypeTest.php | 2 +- core/modules/config/config.module | 2 +- .../config/src/Form/ConfigImportForm.php | 1 - .../config_install_dependency_test.module | 4 +- .../tests/config_test/config_test.hooks.inc | 44 +- .../tests/config_test/config_test.module | 11 - .../config_translation.module | 1 - .../src/Tests/ConfigTranslationListUiTest.php | 4 +- .../Tests/ConfigTranslationOverviewTest.php | 2 +- .../src/Tests/ConfigTranslationUiTest.php | 2 +- .../Tests/ConfigTranslationUiThemeTest.php | 2 +- .../contact/src/Tests/ContactLanguageTest.php | 2 +- .../contact/src/Tests/ContactSitewideTest.php | 4 +- .../contact/src/Tests/ContactStorageTest.php | 2 +- .../tests/drupal-7.contact.database.php | 2 +- .../contact_storage_test.module | 3 +- .../Migrate/d6/MigrateContactSettingsTest.php | 2 +- .../tests/src/Unit/MailHandlerTest.php | 2 +- .../ContentTranslationRouteSubscriber.php | 4 +- .../Tests/ContentTranslationUITestBase.php | 2 +- .../tests/src/Kernel/ContextualUnitTest.php | 2 +- core/modules/datetime/datetime.module | 2 +- .../DateTimeDefaultFormatter.php | 6 +- .../Field/FieldType/DateTimeFieldItemList.php | 4 +- .../Plugin/Field/FieldType/DateTimeItem.php | 2 +- .../FieldWidget/DateTimeDatelistWidget.php | 2 +- .../FieldWidget/DateTimeDefaultWidget.php | 2 +- .../datetime/src/Plugin/views/filter/Date.php | 2 +- .../datetime/src/Tests/DateTimeFieldTest.php | 6 +- core/modules/dblog/src/Tests/DbLogTest.php | 24 +- .../editor/src/Tests/EditorAdminTest.php | 4 +- .../src/Kernel}/QuickEditIntegrationTest.php | 4 +- core/modules/field/field.module | 9 +- .../field/src/Entity/FieldStorageConfig.php | 8 +- .../src/Plugin/migrate/source/d6/Field.php | 2 +- .../modules/field/src/Tests/FieldHelpTest.php | 2 +- .../field/src/Tests/FieldUnitTestBase.php | 5 - ...views_entity_reference_plugins-2429191.php | 5 +- .../modules/field_test/field_test.module | 5 +- .../field_third_party_test.module | 8 +- .../field/tests/src/Kernel/DisplayApiTest.php | 2 +- .../EntityReferenceFormatterTest.php | 63 +++ .../EntityReferenceItemTest.php | 2 +- .../src/Kernel/FieldAttachStorageTest.php | 6 +- .../field/tests/src/Kernel/FieldCrudTest.php | 2 +- .../tests/src/Kernel/FieldDataCountTest.php | 4 +- .../src/Kernel/FieldImportChangeTest.php | 1 - .../src/Kernel/FieldImportCreateTest.php | 1 - .../src/Kernel/FieldImportDeleteTest.php | 1 - .../Kernel/FieldImportDeleteUninstallTest.php | 2 +- .../d7/MigrateFieldFormatterSettingsTest.php | 6 +- .../src/Unit/FieldConfigEntityUnitTest.php | 4 +- .../src/FieldStorageConfigListBuilder.php | 2 +- .../field_ui/src/Form/FieldConfigEditForm.php | 2 +- .../field_ui/src/Tests/ManageFieldsTest.php | 2 +- .../field_ui_test/field_ui_test.module | 2 +- .../tests/src/Kernel/EntityDisplayTest.php | 6 +- .../src/Kernel/EntityFormDisplayTest.php | 4 +- core/modules/file/file.module | 2 +- core/modules/file/src/Element/ManagedFile.php | 46 +- .../FileFieldAnonymousSubmissionTest.php | 169 ++++++ .../file/src/Tests/FileListingTest.php | 2 +- .../src/Tests/FileOnTranslatedEntityTest.php | 2 +- .../PrivateFileOnTranslatedEntityTest.php | 2 +- .../src/Kernel/Migrate/EntityFileTest.php | 2 +- .../install/filter.format.plain_text.yml | 1 - .../Plugin/migrate/source/d6/FilterFormat.php | 2 - .../filter/tests/src/Kernel/FilterAPITest.php | 6 +- .../tests/src/Kernel/FilterUnitTest.php | 20 +- core/modules/forum/forum.module | 5 +- core/modules/forum/src/Tests/ForumTest.php | 14 +- .../src/Kernel}/ForumValidationTest.php | 6 +- core/modules/hal/src/HalServiceProvider.php | 1 - .../hal/tests/src/Kernel/NormalizeTest.php | 2 +- .../help/src/Controller/HelpController.php | 2 +- .../help/src/Plugin/Block/HelpBlock.php | 19 +- core/modules/help/src/Tests/HelpBlockTest.php | 8 +- core/modules/help/src/Tests/HelpTest.php | 4 +- .../help_page_test/help_page_test.module | 2 + .../help_page_test/help_page_test.routing.yml | 7 + .../src/HelpPageTestController.php | 10 + .../more_help_page_test.info.yml | 7 + .../more_help_page_test.module | 20 + core/modules/history/history.module | 2 +- .../views/field/HistoryUserTimestamp.php | 2 +- .../src/Plugin/Field/FieldType/ImageItem.php | 4 +- .../image/src/Tests/ImageFieldWidgetTest.php | 1 - .../src/Tests/ImageOnTranslatedEntityTest.php | 2 +- .../Migrate/d7/MigrateImageStylesTest.php | 4 +- core/modules/language/language.module | 2 +- .../src/ContentLanguageSettingsInterface.php | 1 - .../language/src/Form/LanguageFormBase.php | 2 +- .../src/Form/NegotiationBrowserForm.php | 1 - .../LanguageNegotiationUrl.php | 2 +- .../EntityTypeWithoutLanguageFormTest.php | 2 +- .../src/Tests/LanguagePathMonolingualTest.php | 2 +- .../src/Tests/LanguageSwitchingTest.php | 2 +- .../src/Tests/LanguageUrlRewritingTest.php | 2 +- .../Condition/LanguageConditionTest.php | 4 +- .../src/Kernel}/ConfigurableLanguageTest.php | 4 +- .../src/Kernel}/EntityDefaultLanguageTest.php | 6 +- .../src/Kernel}/EntityUrlLanguageTest.php | 5 +- .../LanguageConfigOverrideInstallTest.php | 4 +- .../LanguageDependencyInjectionTest.php | 2 +- .../src/Kernel}/LanguageFallbackTest.php | 2 +- .../src/Kernel}/LanguageTestBase.php | 4 +- .../Unit/ContentLanguageSettingsUnitTest.php | 32 +- .../Field/FieldFormatter/LinkFormatter.php | 1 + .../FieldFormatter/LinkSeparateFormatter.php | 1 - .../Constraint/LinkTypeConstraint.php | 1 - core/modules/link/src/Tests/LinkFieldTest.php | 41 +- core/modules/locale/locale.bulk.inc | 4 +- core/modules/locale/locale.module | 2 +- .../locale/src/LocaleDefaultConfigStorage.php | 1 - .../LocaleConfigTranslationImportTest.php | 2 +- .../locale/src/Tests/LocaleContentTest.php | 4 +- .../config/schema/locale_test.schema.yml | 4 +- .../src/Kernel}/LocaleConfigManagerTest.php | 4 +- .../LocaleConfigSubscriberForeignTest.php | 15 +- .../Kernel}/LocaleConfigSubscriberTest.php | 9 +- .../LocaleConfigurableLanguageManagerTest.php | 4 +- .../src/Kernel}/LocaleStringIsSafeTest.php | 4 +- .../Kernel}/LocaleTranslationProjectsTest.php | 6 +- ...enuLinkContentCacheabilityBubblingTest.php | 4 +- .../Kernel}/MenuLinkContentDeriverTest.php | 4 +- .../Kernel}/PathAliasMenuLinkContentTest.php | 8 +- .../menu_ui/src/Tests/MenuLanguageTest.php | 2 +- core/modules/menu_ui/src/Tests/MenuTest.php | 16 +- .../modules/migrate/src/MigrateExecutable.php | 8 +- core/modules/migrate/src/Plugin/Migration.php | 2 +- .../Plugin/migrate/process/MenuLinkParent.php | 2 +- .../src/Plugin/migrate/process/StaticMap.php | 2 +- .../src/Unit/process/DedupeEntityTest.php | 2 +- .../tests/src/Unit/process/StaticMapTest.php | 11 + core/modules/node/node.api.php | 8 +- core/modules/node/node.module | 6 +- core/modules/node/node.views_execution.inc | 2 +- .../node/src/Controller/NodeController.php | 2 +- core/modules/node/src/NodeViewBuilder.php | 2 +- .../src/Plugin/Action/AssignOwnerNode.php | 2 +- .../node/src/Plugin/Search/NodeSearch.php | 2 +- .../Tests/NodeActionsConfigurationTest.php | 84 +++ .../src/Tests/NodeBlockFunctionalTest.php | 2 +- .../node/src/Tests/NodeEditFormTest.php | 2 +- .../node/src/Tests/NodeFormButtonsTest.php | 6 +- .../node/src/Tests/NodeRevisionsAllTest.php | 2 +- .../node/src/Tests/NodeTranslationUITest.php | 2 +- core/modules/node/src/Tests/NodeTypeTest.php | 2 +- .../src/Tests/NodeTypeTranslationTest.php | 2 +- .../node/src/Tests/Views/FrontPageTest.php | 2 +- .../Tests/Views/NodeRevisionWizardTest.php | 1 - core/modules/node/templates/node.html.twig | 13 +- .../node_access_test/node_access_test.module | 3 +- .../tests/modules/node_test/node_test.module | 3 +- .../Kernel}/Config/NodeImportChangeTest.php | 4 +- .../Kernel}/Config/NodeImportCreateTest.php | 8 +- .../src/Kernel}/NodeBodyFieldStorageTest.php | 4 +- .../src/Kernel}/NodeConditionTest.php | 6 +- .../src/Kernel}/NodeFieldAccessTest.php | 6 +- .../src/Kernel}/NodeFieldOverridesTest.php | 9 +- .../src/Kernel}/NodeListBuilderTest.php | 4 +- .../src/Kernel}/NodeOwnerTest.php | 6 +- .../src/Kernel}/NodeTokenReplaceTest.php | 6 +- .../src/Kernel}/NodeValidationTest.php | 6 +- core/modules/page_cache/page_cache.module | 2 +- .../modules/page_cache_form_test.install | 1 - core/modules/path/src/Tests/PathAdminTest.php | 2 +- core/modules/path/src/Tests/PathAliasTest.php | 2 +- .../path/src/Tests/PathLanguageTest.php | 2 +- .../path/src/Tests/PathLanguageUiTest.php | 4 +- .../path/src/Tests/PathNodeFormTest.php | 2 +- .../path/src/Tests/PathTaxonomyTermTest.php | 2 +- .../tests/modules/quickedit_test.module | 1 - .../src/Kernel}/EditorSelectionTest.php | 2 +- .../src/Kernel}/MetadataGeneratorTest.php | 2 +- .../src/Kernel}/QuickEditTestBase.php | 4 +- core/modules/rdf/rdf.module | 2 +- .../Tests => tests/src/Kernel}/CrudTest.php | 4 +- .../Kernel/Field/DateTimeFieldRdfaTest.php | 2 +- .../src/Kernel/Field/EmailFieldRdfaTest.php | 4 +- .../Field/FieldRdfaDatatypeCallbackTest.php | 3 +- .../src/Kernel/Field/LinkFieldRdfaTest.php | 2 +- .../src/Kernel/Field/StringFieldRdfaTest.php | 2 +- .../src/Kernel/Field/TextFieldRdfaTest.php | 6 +- .../src/Kernel}/RdfaAttributesTest.php | 4 +- .../responsive_image/responsive_image.module | 8 +- .../tests/src/Kernel/RequestHandlerTest.php | 4 +- .../src/Kernel}/RestLinkManagerTest.php | 5 +- core/modules/search/search.api.php | 1 - core/modules/search/search.module | 2 +- core/modules/search/search.pages.inc | 1 - core/modules/search/src/SearchQuery.php | 4 +- .../Tests/SearchAdvancedSearchFormTest.php | 2 +- .../search/src/Tests/SearchBlockTest.php | 2 +- .../Tests/SearchCommentCountToggleTest.php | 2 +- .../Tests/SearchConfigSettingsFormTest.php | 2 +- .../search/src/Tests/SearchExactTest.php | 2 +- .../Tests/SearchKeywordsConditionsTest.php | 2 +- .../search/src/Tests/SearchLanguageTest.php | 10 +- .../src/Tests/SearchPageCacheTagsTest.php | 2 +- .../src/Tests/SearchPageOverrideTest.php | 2 +- .../search/src/Tests/SearchQueryAlterTest.php | 2 +- .../search/src/Tests/SearchRankingTest.php | 2 +- .../search/src/Tests/SearchSimplifyTest.php | 2 +- .../src/Kernel}/SearchExcerptTest.php | 4 +- .../src/Kernel}/SearchMatchTest.php | 4 +- .../src/Tests/EntitySerializationTest.php | 2 + .../src/Kernel}/SerializationTest.php | 4 +- .../Normalizer/ConfigEntityNormalizerTest.php | 1 - .../src/Tests/ShortcutCacheTagsTest.php | 3 +- .../shortcut/src/Tests/ShortcutLinksTest.php | 2 +- .../src/Tests/ShortcutTranslationUITest.php | 2 +- core/modules/simpletest/simpletest.install | 2 +- .../modules/simpletest/src/KernelTestBase.php | 2 +- .../simpletest/src/RandomGeneratorTrait.php | 123 +---- .../simpletest/src/SessionTestTrait.php | 35 +- core/modules/simpletest/src/TestBase.php | 7 +- .../simpletest/src/Tests/MailCaptureTest.php | 4 +- core/modules/simpletest/src/WebAssert.php | 65 +-- core/modules/simpletest/src/WebTestBase.php | 6 +- .../simpletest_phpunit_run_command_test.php | 1 - .../Unit/SimpletestPhpunitRunCommandTest.php | 2 +- .../tests/src/Unit/TestInfoParsingTest.php | 6 +- .../statistics/src/StatisticsSettingsForm.php | 1 - core/modules/statistics/statistics.php | 1 - .../src/Controller/DbUpdateController.php | 3 +- .../system/src/Form/DateFormatFormBase.php | 2 +- .../system/src/Form/ModulesListForm.php | 2 +- .../src/Form/ModulesUninstallConfirmForm.php | 2 +- .../system/src/Form/ModulesUninstallForm.php | 2 +- core/modules/system/src/Form/RegionalForm.php | 2 +- .../system/src/PathBasedBreadcrumbBuilder.php | 6 +- .../src/Plugin/Condition/RequestPath.php | 4 +- .../system/src/Tests/Ajax/DialogTest.php | 3 +- .../system/src/Tests/Ajax/MultiFormTest.php | 4 +- .../Asset/LibraryDiscoveryIntegrationTest.php | 2 +- .../Cache/GenericCacheBackendUnitTestBase.php | 2 +- .../src/Tests/Common/AttachedAssetsTest.php | 2 +- .../system/src/Tests/Common/RenderWebTest.php | 4 +- .../Tests/Entity/EntityCacheTagsTestBase.php | 4 +- .../Tests/Entity/EntityListBuilderTest.php | 2 +- .../src/Tests/Entity/EntityOperationsTest.php | 2 +- .../EntityReferenceSelectionAccessTest.php | 19 + .../src/Tests/Entity/EntityRevisionsTest.php | 2 +- .../InstallerExistingConfigDirectoryTest.php | 33 ++ .../KeyValueContentEntityStorageTest.php | 2 +- .../src/Tests/Module/ClassLoaderTest.php | 4 +- .../Plugin/Condition/RequestPathTest.php | 9 + .../Plugin/Discovery/DiscoveryTestBase.php | 1 - .../Plugin/Discovery/StaticDiscoveryTest.php | 1 - .../src/Tests/Render/AjaxPageStateTest.php | 2 +- .../src/Tests/Routing/MatcherDumperTest.php | 6 +- .../src/Tests/Routing/MockAliasManager.php | 4 + .../system/src/Tests/Session/SessionTest.php | 4 +- .../src/Tests/System/AccessDeniedTest.php | 2 +- .../system/src/Tests/System/DateTimeTest.php | 71 ++- .../system/src/Tests/System/FloodTest.php | 6 +- .../system/src/Tests/System/FrontPageTest.php | 2 +- .../Tests/System/MainContentFallbackTest.php | 2 +- .../src/Tests/System/PageNotFoundTest.php | 2 +- .../System/SitesDirectoryHardeningTest.php | 4 +- .../src/Tests/Theme/TwigEnvironmentTest.php | 1 - .../src/Tests/TypedData/TypedDataTest.php | 36 +- ...sAndTasksConvertedIntoBlocksUpdateTest.php | 2 +- .../PageTitleConvertedIntoBlockUpdateTest.php | 2 +- ...LocalTasksConvertedIntoBlockUpdateTest.php | 2 +- ...teBrandingConvertedIntoBlockUpdateTest.php | 2 +- .../UpdatePathWithBrokenRoutingFilledTest.php | 2 +- .../src/Tests/Update/UpdateScriptTest.php | 18 + core/modules/system/system.admin.inc | 1 - core/modules/system/system.install | 2 +- core/modules/system/system.module | 2 +- core/modules/system/system.routing.yml | 2 +- .../drupal-8.block-content-uninstall.php | 1 - ...drupal-8.block-context-manager-2354889.php | 7 +- .../update/drupal-8.broken_routing.php | 1 - ...local-actions-tasks-into-blocks-507488.php | 3 +- ...drupal-8.page-title-into-block-2476947.php | 3 +- ...en-secondary-local-tasks-block-2569529.php | 3 +- ...pal-8.site-branding-into-block-2005546.php | 3 +- ...rupal-8.update-test-postupdate-enabled.php | 1 - ...update-test-postupdate-failing-enabled.php | 1 - ...upal-8.views-entity-views-data-2455125.php | 3 +- .../drupal-8.without_automated_cron.php | 4 +- .../ajax_forms_test/ajax_forms_test.module | 48 +- .../src/Tests/ConditionTestDualUserTest.php | 2 +- .../database_test/database_test.module | 1 - .../src/Form/DatabaseTestForm.php | 2 +- .../entity_test/src/Entity/EntityTestRev.php | 7 + .../entity_test_operation.module | 3 +- .../src/Controller/ErrorTestController.php | 2 +- .../src/Controller/ModuleTestController.php | 4 +- .../plugin_test/fruit/FruitInterface.php | 1 - .../plugin_test/mock_block/MockMenuBlock.php | 6 +- .../PageCacheAcceptHeaderController.php | 1 - .../system_test/src/MockFileTransfer.php | 2 +- .../theme_test/src/ThemeTestController.php | 2 +- .../Controller/TrustedHostsTestController.php | 1 - .../twig_extension_test.module | 1 - .../Controller/UpdateScriptTestController.php | 31 ++ .../update_script_test.routing.yml | 6 + .../update_test_postupdate.post_update.php | 2 +- .../Kernel/Extension/ModuleHandlerTest.php | 3 +- .../Kernel/Token/TokenReplaceKernelTest.php} | 4 +- .../Token/TokenReplaceKernelTestBase.php} | 6 +- .../PathBasedBreadcrumbBuilderTest.php | 14 +- .../InstallTranslationFilePatternTest.php | 2 +- .../tests/src/Unit/SystemRequirementsTest.php | 3 +- .../test_subsubtheme/test_subsubtheme.theme | 1 - .../TermSelection.php | 2 +- .../Plugin/migrate/source/d6/Vocabulary.php | 2 +- .../Plugin/views/filter/TaxonomyIndexTid.php | 3 +- .../taxonomy/src/TermStorageSchema.php | 2 +- core/modules/taxonomy/src/TermViewsData.php | 2 +- core/modules/taxonomy/src/Tests/TermTest.php | 2 +- .../taxonomy/src/Tests/TokenReplaceTest.php | 1 - .../Views/TaxonomyIndexTidFilterTest.php | 156 ++++++ .../src/Tests/Views/TaxonomyTestBase.php | 8 +- core/modules/taxonomy/taxonomy.module | 6 +- .../taxonomy_crud/taxonomy_crud.module | 4 +- ...omy_index_tid__non_existing_dependency.yml | 187 +++++++ .../src/Kernel}/TermKernelTest.php | 5 +- .../src/Kernel}/TermValidationTest.php | 6 +- .../Plugin/Field/FieldType/TelephoneItem.php | 2 +- .../src/Kernel}/TextFormatterTest.php | 6 +- .../src/Kernel}/TextSummaryTest.php | 4 +- core/modules/text/text.module | 2 +- core/modules/toolbar/src/Element/Toolbar.php | 2 +- .../ToolbarIntegrationTest.php | 29 +- core/modules/tour/src/Tests/TourTest.php | 2 +- .../src/Kernel}/TourPluginTest.php | 4 +- .../Migrate/d7/MigrateTrackerNodeTest.php | 1 - .../update_test/src/MockFileTransfer.php | 2 +- core/modules/update/update.authorize.inc | 4 +- core/modules/update/update.fetch.inc | 1 - core/modules/update/update.module | 2 +- core/modules/update/update.report.inc | 2 +- core/modules/user/src/AccountSettingsForm.php | 2 +- .../user/src/Controller/UserController.php | 2 +- .../MaintenanceModeSubscriber.php | 2 +- .../user/src/Form/UserPasswordResetForm.php | 1 - .../user/src/PermissionHandlerInterface.php | 1 - .../UserSelection.php | 8 +- .../user/src/Plugin/views/access/Role.php | 1 - .../user/src/Tests/UserAdminLanguageTest.php | 6 +- .../src/Tests/UserLanguageCreationTest.php | 2 +- .../user/src/Tests/UserLanguageTest.php | 2 +- .../user/src/Tests/UserRegistrationTest.php | 6 +- .../src/Tests/Views/BulkFormAccessTest.php | 16 +- .../user/src/Tests/Views/BulkFormTest.php | 2 +- .../Condition/UserRoleConditionTest.php | 4 +- .../Kernel}/Field/UserNameFormatterTest.php | 4 +- ...igrateUserProfileEntityFormDisplayTest.php | 2 +- .../Migrate/d6/MigrateUserConfigsTest.php | 2 +- .../src/Kernel}/TempStoreDatabaseTest.php | 4 +- .../src/Kernel}/UserAccountFormFieldsTest.php | 4 +- .../Kernel}/UserActionConfigSchemaTest.php | 4 +- .../src/Kernel}/UserEntityReferenceTest.php | 10 +- .../src/Kernel}/UserEntityTest.php | 4 +- .../src/Kernel}/UserFieldsTest.php | 4 +- .../src/Kernel}/UserInstallTest.php | 4 +- .../src/Kernel}/UserRoleDeleteTest.php | 4 +- .../src/Kernel}/UserSaveStatusTest.php | 4 +- .../src/Kernel}/UserValidationTest.php | 4 +- .../src/Unit/PermissionAccessCheckTest.php | 2 +- .../tests/src/Unit/PrivateTempStoreTest.php | 1 - .../tests/src/Unit/SharedTempStoreTest.php | 1 - core/modules/user/user.module | 10 +- core/modules/views/src/EntityViewsData.php | 2 +- .../ViewsEntitySchemaSubscriber.php | 1 - .../views/src/Plugin/ViewsHandlerManager.php | 2 +- .../views/src/Plugin/views/HandlerBase.php | 2 +- .../ArgumentValidatorPluginBase.php | 19 +- .../views/src/Plugin/views/display/Block.php | 2 +- .../views/display/DisplayPluginBase.php | 10 +- .../views/src/Plugin/views/display/Embed.php | 9 +- .../Plugin/views/display/PathPluginBase.php | 2 +- .../views/field/FieldHandlerInterface.php | 5 +- .../field/MultiItemsFieldHandlerInterface.php | 1 - .../views/src/Plugin/views/filter/Combine.php | 2 +- .../views/src/Plugin/views/query/Sql.php | 22 +- .../Plugin/views/style/StylePluginBase.php | 2 + .../Entity/FieldEntityTranslationTest.php | 4 +- .../src/Tests/Plugin/DisplayExtenderTest.php | 3 +- .../src/Tests/Plugin/ExposedFormTest.php | 2 +- .../views/src/Tests/ViewElementTest.php | 45 +- core/modules/views/src/ViewExecutable.php | 2 +- core/modules/views/src/ViewsDataHelper.php | 1 - .../fixtures/update/argument-placeholder.php | 7 +- .../update/duplicate-field-handler.php | 7 +- .../views.view.test_row_render_cache_none.yml | 503 ++++++++++++++++++ .../views_test_data/views_test_data.module | 4 +- .../src/Kernel/Handler/FieldFieldTest.php | 2 +- .../Handler/FilterBooleanOperatorTest.php | 1 - .../views/tests/src/Kernel/ModuleTest.php | 5 +- .../src/Kernel/Plugin/RowRenderCacheTest.php | 38 +- .../src/Kernel/RenderCacheIntegrationTest.php | 2 +- .../src/Kernel}/TestViewsTest.php | 4 +- .../tests/src/Kernel/ViewExecutableTest.php | 2 +- .../Wizard/WizardPluginBaseKernelTest.php | 1 - .../Controller/ViewAjaxControllerTest.php | 1 - .../Plugin/argument_validator/EntityTest.php | 2 +- .../Unit/Plugin/field/FieldPluginBaseTest.php | 16 +- .../views/tests/src/Unit/ViewsDataTest.php | 2 +- core/modules/views/views.module | 2 +- core/modules/views/views.post_update.php | 23 + core/modules/views/views.views.inc | 6 +- .../views_ui/src/Form/Ajax/AddHandler.php | 2 +- .../src/Form/Ajax/ConfigHandlerExtra.php | 2 +- .../src/Form/Ajax/RearrangeFilter.php | 1 - .../views_ui/src/Form/Ajax/ViewsFormBase.php | 21 +- .../views_ui/src/Tests/CachedDataUITest.php | 2 +- .../views_ui/src/Tests/FieldUITest.php | 2 +- .../views_ui/src/Tests/PreviewTest.php | 2 +- .../views_ui/src/Tests/RedirectTest.php | 2 +- .../views_ui/src/Tests/TranslatedViewTest.php | 2 +- .../LibraryCachingTest.php | 69 +++ core/modules/views_ui/views_ui.module | 4 +- core/modules/views_ui/views_ui.theme.inc | 6 +- core/phpcs.xml.dist | 56 ++ core/phpunit.xml.dist | 6 +- .../JavascriptTestBase.php | 6 + .../Breadcrumb/Breadcrumb404Test.php | 57 ++ .../KernelTests/Config/DefaultConfigTest.php | 1 - .../Core/Config/ConfigImporterTest.php | 94 ++++ .../Config/ConfigLanguageOverrideTest.php | 1 - .../Config/ConfigOverridesPriorityTest.php | 2 +- .../Core/Config/ConfigSchemaTest.php | 6 +- .../KernelTests/Core/Database/AlterTest.php | 4 +- .../KernelTests/Core/Database/SchemaTest.php | 2 +- .../KernelTests/Core/Database/SelectTest.php | 6 +- .../KernelTests/Core/Database/UpdateTest.php | 2 +- .../ContentEntityNonRevisionableFieldTest.php | 177 ++++++ .../Entity/EntityDefinitionUpdateTest.php | 2 +- .../Core/Entity/EntityFieldTest.php | 14 +- .../Core/Entity/EntityQueryAggregateTest.php | 2 +- .../Core/Entity/EntityQueryTest.php | 2 +- .../EntityReferenceSelectionSortTest.php | 4 +- .../Core/Entity/EntityViewBuilderTest.php | 4 +- .../Core/Path/AliasStorageTest.php | 4 +- .../Drupal/KernelTests/KernelTestBase.php | 15 +- .../MissingDependentModuleUnitTest.php | 2 +- core/tests/Drupal/Tests/BrowserTestBase.php | 12 +- .../DependencyInjection/ContainerTest.php | 6 +- .../Tests/Component/DrupalComponentTest.php | 4 +- .../MTimeProtectedFileStorageBase.php | 4 +- .../Component/Plugin/DefaultFactoryTest.php | 1 - .../Discovery/DiscoveryCachedTraitTest.php | 4 +- .../Plugin/Discovery/DiscoveryTraitTest.php | 10 +- .../StaticDiscoveryDecoratorTest.php | 4 +- .../Plugin/Factory/ReflectionFactoryTest.php | 2 +- .../Component/Render/PlainTextOutputTest.php | 2 +- .../Tests/Component/Utility/HtmlTest.php | 2 +- .../Tests/Component/Utility/NumberTest.php | 12 +- .../Drupal/Tests/ComposerIntegrationTest.php | 9 + .../Tests/Core/Asset/CssOptimizerUnitTest.php | 2 +- .../Asset/LibraryDependencyResolverTest.php | 2 +- .../Tests/Core/Batch/PercentagesTest.php | 10 +- .../Context/CacheContextsManagerTest.php | 2 +- .../Context/PathParentCacheContextTest.php | 43 ++ .../Compiler/TaggedHandlersPassTest.php | 1 - .../DiscoverServiceProvidersTest.php | 5 +- .../Core/DrupalKernel/DrupalKernelTest.php | 6 +- .../Sql/SqlContentEntityStorageSchemaTest.php | 46 +- .../CustomPageExceptionHtmlSubscriberTest.php | 3 +- .../Core/Extension/ModuleHandlerTest.php | 2 +- .../Tests/Core/Form/FormBuilderTest.php | 2 +- .../Drupal/Tests/Core/Form/FormTestBase.php | 1 - .../Tests/Core/Form/FormValidatorTest.php | 2 +- .../Tests/Core/Logger/LoggerChannelTest.php | 1 - .../Tests/Core/Menu/LocalTaskManagerTest.php | 1 - .../Core/PageCache/NoSessionOpenTest.php | 4 +- .../ParamConverter/EntityConverterTest.php | 3 +- .../Tests/Core/Path/AliasManagerTest.php | 2 +- .../Tests/Core/Path/PathValidatorTest.php | 1 - .../Plugin/Context/ContextDefinitionTest.php | 4 +- .../DerivativeDiscoveryDecoratorTest.php | 2 +- .../Core/Render/BubbleableMetadataTest.php | 8 +- .../Core/Render/RendererPlaceholdersTest.php | 39 +- .../Tests/Core/Render/RendererTestBase.php | 2 +- .../NegotiationMiddlewareTest.php | 4 +- .../Tests/Core/Template/AttributeTest.php | 2 +- .../RecursiveContextualValidatorTest.php | 1 - core/tests/Drupal/Tests/Core/UrlTest.php | 2 +- .../Tests/Core/Utility/LinkGeneratorTest.php | 4 +- .../PrimitiveTypeConstraintValidatorTest.php | 2 +- .../Drupal/Tests/RandomGeneratorTrait.php | 126 +++++ core/tests/Drupal/Tests/SessionTestTrait.php | 40 ++ core/tests/Drupal/Tests/WebAssert.php | 67 +++ core/tests/bootstrap.php | 5 +- core/themes/bartik/bartik.theme | 3 +- core/themes/bartik/templates/node.html.twig | 13 +- .../classy/templates/content/node.html.twig | 13 +- .../stable/templates/content/node.html.twig | 13 +- vendor/composer/autoload_classmap.php | 1 + vendor/composer/autoload_files.php | 1 - 669 files changed, 3873 insertions(+), 1553 deletions(-) create mode 100644 core/lib/Drupal/Core/Cache/Context/PathParentCacheContext.php rename core/modules/editor/{src/Tests => tests/src/Kernel}/QuickEditIntegrationTest.php (98%) create mode 100644 core/modules/file/src/Tests/FileFieldAnonymousSubmissionTest.php rename core/modules/forum/{src/Tests => tests/src/Kernel}/ForumValidationTest.php (91%) create mode 100644 core/modules/help/tests/modules/more_help_page_test/more_help_page_test.info.yml create mode 100644 core/modules/help/tests/modules/more_help_page_test/more_help_page_test.module rename core/modules/language/{src/Tests => tests/src/Kernel}/Condition/LanguageConditionTest.php (97%) rename core/modules/language/{src/Tests => tests/src/Kernel}/ConfigurableLanguageTest.php (91%) rename core/modules/language/{src/Tests => tests/src/Kernel}/EntityDefaultLanguageTest.php (98%) rename core/modules/language/{src/Tests => tests/src/Kernel}/EntityUrlLanguageTest.php (98%) rename core/modules/language/{src/Tests => tests/src/Kernel}/LanguageConfigOverrideInstallTest.php (93%) rename core/modules/language/{src/Tests => tests/src/Kernel}/LanguageDependencyInjectionTest.php (98%) rename core/modules/language/{src/Tests => tests/src/Kernel}/LanguageFallbackTest.php (98%) rename core/modules/language/{src/Tests => tests/src/Kernel}/LanguageTestBase.php (91%) rename core/modules/locale/{src/Tests => tests/src/Kernel}/LocaleConfigManagerTest.php (98%) rename core/modules/locale/{src/Tests => tests/src/Kernel}/LocaleConfigSubscriberForeignTest.php (94%) rename core/modules/locale/{src/Tests => tests/src/Kernel}/LocaleConfigSubscriberTest.php (98%) rename core/modules/locale/{src/Tests => tests/src/Kernel}/LocaleConfigurableLanguageManagerTest.php (95%) rename core/modules/locale/{src/Tests => tests/src/Kernel}/LocaleStringIsSafeTest.php (97%) rename core/modules/locale/{src/Tests => tests/src/Kernel}/LocaleTranslationProjectsTest.php (91%) rename core/modules/menu_link_content/{src/Tests => tests/src/Kernel}/MenuLinkContentCacheabilityBubblingTest.php (98%) rename core/modules/menu_link_content/{src/Tests => tests/src/Kernel}/MenuLinkContentDeriverTest.php (97%) rename core/modules/menu_link_content/{src/Tests => tests/src/Kernel}/PathAliasMenuLinkContentTest.php (93%) create mode 100644 core/modules/node/src/Tests/NodeActionsConfigurationTest.php rename core/modules/node/{src/Tests => tests/src/Kernel}/Config/NodeImportChangeTest.php (95%) rename core/modules/node/{src/Tests => tests/src/Kernel}/Config/NodeImportCreateTest.php (90%) rename core/modules/node/{src/Tests => tests/src/Kernel}/NodeBodyFieldStorageTest.php (96%) rename core/modules/node/{src/Tests/Condition => tests/src/Kernel}/NodeConditionTest.php (95%) rename core/modules/node/{src/Tests => tests/src/Kernel}/NodeFieldAccessTest.php (97%) rename core/modules/node/{src/Tests => tests/src/Kernel}/NodeFieldOverridesTest.php (85%) rename core/modules/node/{src/Tests => tests/src/Kernel}/NodeListBuilderTest.php (92%) rename core/modules/node/{src/Tests => tests/src/Kernel}/NodeOwnerTest.php (92%) rename core/modules/node/{src/Tests => tests/src/Kernel}/NodeTokenReplaceTest.php (96%) rename core/modules/node/{src/Tests => tests/src/Kernel}/NodeValidationTest.php (94%) rename core/modules/quickedit/{src/Tests => tests/src/Kernel}/EditorSelectionTest.php (99%) rename core/modules/quickedit/{src/Tests => tests/src/Kernel}/MetadataGeneratorTest.php (99%) rename core/modules/quickedit/{src/Tests => tests/src/Kernel}/QuickEditTestBase.php (97%) rename core/modules/rdf/{src/Tests => tests/src/Kernel}/CrudTest.php (97%) rename core/modules/rdf/{src/Tests => tests/src/Kernel}/RdfaAttributesTest.php (97%) rename core/modules/rest/{src/Tests => tests/src/Kernel}/RestLinkManagerTest.php (97%) rename core/modules/search/{src/Tests => tests/src/Kernel}/SearchExcerptTest.php (99%) rename core/modules/search/{src/Tests => tests/src/Kernel}/SearchMatchTest.php (99%) rename core/modules/serialization/{src/Tests => tests/src/Kernel}/SerializationTest.php (94%) create mode 100644 core/modules/system/src/Tests/Installer/InstallerExistingConfigDirectoryTest.php create mode 100644 core/modules/system/tests/modules/update_script_test/src/Controller/UpdateScriptTestController.php create mode 100644 core/modules/system/tests/modules/update_script_test/update_script_test.routing.yml rename core/modules/system/{src/Tests/System/TokenReplaceUnitTest.php => tests/src/Kernel/Token/TokenReplaceKernelTest.php} (98%) rename core/modules/system/{src/Tests/System/TokenReplaceUnitTestBase.php => tests/src/Kernel/Token/TokenReplaceKernelTestBase.php} (80%) create mode 100644 core/modules/taxonomy/src/Tests/Views/TaxonomyIndexTidFilterTest.php create mode 100644 core/modules/taxonomy/tests/modules/taxonomy_test_views/test_views/views.view.test_filter_taxonomy_index_tid__non_existing_dependency.yml rename core/modules/taxonomy/{src/Tests => tests/src/Kernel}/TermKernelTest.php (97%) rename core/modules/taxonomy/{src/Tests => tests/src/Kernel}/TermValidationTest.php (93%) rename core/modules/text/{src/Tests/Formatter => tests/src/Kernel}/TextFormatterTest.php (94%) rename core/modules/text/{src/Tests => tests/src/Kernel}/TextSummaryTest.php (99%) rename core/modules/tour/{src/Tests => tests/src/Kernel}/TourPluginTest.php (90%) rename core/modules/user/{src/Tests => tests/src/Kernel}/Condition/UserRoleConditionTest.php (98%) rename core/modules/user/{src/Tests => tests/src/Kernel}/Field/UserNameFormatterTest.php (96%) rename core/modules/user/{src/Tests => tests/src/Kernel}/TempStoreDatabaseTest.php (98%) rename core/modules/user/{src/Tests => tests/src/Kernel}/UserAccountFormFieldsTest.php (98%) rename core/modules/user/{src/Tests => tests/src/Kernel}/UserActionConfigSchemaTest.php (94%) rename core/modules/user/{src/Tests => tests/src/Kernel}/UserEntityReferenceTest.php (92%) rename core/modules/user/{src/Tests => tests/src/Kernel}/UserEntityTest.php (96%) rename core/modules/user/{src/Tests => tests/src/Kernel}/UserFieldsTest.php (94%) rename core/modules/user/{src/Tests => tests/src/Kernel}/UserInstallTest.php (94%) rename core/modules/user/{src/Tests => tests/src/Kernel}/UserRoleDeleteTest.php (96%) rename core/modules/user/{src/Tests => tests/src/Kernel}/UserSaveStatusTest.php (92%) rename core/modules/user/{src/Tests => tests/src/Kernel}/UserValidationTest.php (99%) create mode 100644 core/modules/views/tests/modules/views_test_config/test_views/views.view.test_row_render_cache_none.yml rename core/modules/views/{src/Tests => tests/src/Kernel}/TestViewsTest.php (95%) create mode 100644 core/modules/views_ui/tests/src/FunctionalJavascript/LibraryCachingTest.php create mode 100644 core/tests/Drupal/FunctionalTests/Breadcrumb/Breadcrumb404Test.php create mode 100644 core/tests/Drupal/KernelTests/Core/Entity/ContentEntityNonRevisionableFieldTest.php rename core/{modules/simpletest/src/Tests => tests/Drupal/KernelTests}/MissingDependentModuleUnitTest.php (91%) create mode 100644 core/tests/Drupal/Tests/Core/Cache/Context/PathParentCacheContextTest.php create mode 100644 core/tests/Drupal/Tests/RandomGeneratorTrait.php create mode 100644 core/tests/Drupal/Tests/SessionTestTrait.php create mode 100644 core/tests/Drupal/Tests/WebAssert.php diff --git a/core/CHANGELOG.txt b/core/CHANGELOG.txt index 609fd4ae0..a632835ce 100644 --- a/core/CHANGELOG.txt +++ b/core/CHANGELOG.txt @@ -11,7 +11,7 @@ Drupal 8.1.0, 2016-04-20 * Added Symfony Polyfill Iconv 1.1.0. * Added paragonie/random_compat 1.4.1. - Updated vendor libraries: - * Updated to Symfony 2.8.4. + * Updated to the last 2.x minor version of Symfony: 2.8 (2.8.4). * Updated to CKEditor 4.5.8. * Updated to Modernizr 3.3.1. - Added modules: @@ -34,12 +34,13 @@ Drupal 8.1.0, 2016-04-20 reducing the code needed to extend them. * Simplified Migrate API by replacing migration configuration entities with migration plugins. - * Added support for entity types to specify translatable plural labels. - * Added a revision log interface and trait for revisionable entity types. - * Added key field definitions to ContentEntityBase, reducing code from - child classes. - * Added generic route providers for add-page and add-form entity routes, - reducing the code needed to define an entity type. + * Various improvements for defining entity types: + * Added support for entity types to specify translatable plural labels. + * Added a revision log interface and trait for revisionable entity types. + * Added key field definitions to ContentEntityBase, reducing code from + child classes. + * Added generic route providers for add-page and add-form entity routes, + reducing the code needed to define an entity type. - Testing improvements: * Added support for automated JavaScript testing. * Added verbose output for BrowserTestBase. @@ -414,8 +415,8 @@ Drupal 7.0, 2011-01-05 are available. - OpenID: * Added support for Gmail and Google Apps for Domain identifiers. Users can - now login with their user@example.com identifier when example.com is powered - by Google. + now log in with their user@example.com identifier when example.com is + powered by Google. * Made the OpenID module more pluggable. - Added code registry: * Using the registry, modules declare their includable files via their .info file, diff --git a/core/MAINTAINERS.txt b/core/MAINTAINERS.txt index 8f456ebd9..8ca4bbd66 100644 --- a/core/MAINTAINERS.txt +++ b/core/MAINTAINERS.txt @@ -314,6 +314,7 @@ Database Logging module - Khalid Baheyeldin 'kbahey' https://www.drupal.org/u/kbahey DateTime module +- Jonathan Hedstrom 'jhedstrom' https://www.drupal.org/u/jhedstrom - Matthew Donadio 'mpdonadio' https://www.drupal.org/u/mpdonadio Dynamic Page Cache module diff --git a/core/composer.json b/core/composer.json index 16e542a92..ad8542564 100644 --- a/core/composer.json +++ b/core/composer.json @@ -140,10 +140,8 @@ "Drupal\\Component\\": "lib/Drupal/Component", "Drupal\\Driver\\": "../drivers/lib/Drupal/Driver" }, - "files": [ - "lib/Drupal.php" - ], "classmap": [ + "lib/Drupal.php", "lib/Drupal/Component/Utility/Timer.php", "lib/Drupal/Component/Utility/Unicode.php", "lib/Drupal/Core/Database/Database.php", diff --git a/core/core.services.yml b/core/core.services.yml index d9b1839cd..5877a38c1 100644 --- a/core/core.services.yml +++ b/core/core.services.yml @@ -80,6 +80,11 @@ services: arguments: ['@request_stack'] tags: - { name: cache.context } + cache_context.url.path.parent: + class: Drupal\Core\Cache\Context\PathParentCacheContext + arguments: ['@request_stack'] + tags: + - { name: cache.context } cache_context.url.query_args: class: Drupal\Core\Cache\Context\QueryArgsCacheContext arguments: ['@request_stack'] diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index 589d451c3..2294d4705 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -623,7 +623,7 @@ function drupal_valid_test_ua($new_prefix = NULL) { $user_agent = isset($_COOKIE['SIMPLETEST_USER_AGENT']) ? $_COOKIE['SIMPLETEST_USER_AGENT'] : $http_user_agent; if (isset($user_agent) && preg_match("/^(simpletest\d+):(.+):(.+):(.+)$/", $user_agent, $matches)) { list(, $prefix, $time, $salt, $hmac) = $matches; - $check_string = $prefix . ':' . $time . ':' . $salt; + $check_string = $prefix . ':' . $time . ':' . $salt; // Read the hash salt prepared by drupal_generate_test_ua(). // This function is called before settings.php is read and Drupal's error // handlers are set up. While Drupal's error handling may be properly diff --git a/core/includes/common.inc b/core/includes/common.inc index 03af03bbb..feceb5bbe 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -14,6 +14,7 @@ use Drupal\Component\Utility\Html; use Drupal\Component\Utility\SortArray; use Drupal\Component\Utility\UrlHelper; use Drupal\Core\Cache\Cache; +use Drupal\Core\Render\Element\Link; use Drupal\Core\Render\Markup; use Drupal\Core\StringTranslation\TranslatableMarkup; use Drupal\Core\PhpStorage\PhpStorageFactory; @@ -748,7 +749,7 @@ function drupal_clear_js_cache() { * Use \Drupal\Core\Render\Element\Link::preRenderLink(). */ function drupal_pre_render_link($element) { - return Element\Link::preRenderLink($element); + return Link::preRenderLink($element); } /** diff --git a/core/includes/form.inc b/core/includes/form.inc index c110c5b31..06a806be9 100644 --- a/core/includes/form.inc +++ b/core/includes/form.inc @@ -7,6 +7,7 @@ use Drupal\Component\Utility\UrlHelper; use Drupal\Core\Render\Element; +use Drupal\Core\Render\Element\RenderElement; use Drupal\Core\Template\Attribute; use Drupal\Core\Url; use Symfony\Component\HttpFoundation\RedirectResponse; @@ -29,7 +30,7 @@ use Symfony\Component\HttpFoundation\RedirectResponse; function template_preprocess_select(&$variables) { $element = $variables['element']; Element::setAttributes($element, array('id', 'name', 'size')); - Element\RenderElement::setAttributes($element, array('form-select')); + RenderElement::setAttributes($element, array('form-select')); $variables['attributes'] = $element['#attributes']; $variables['options'] = form_select_options($element); @@ -191,7 +192,7 @@ function form_get_options($element, $key) { function template_preprocess_fieldset(&$variables) { $element = $variables['element']; Element::setAttributes($element, array('id')); - Element\RenderElement::setAttributes($element); + RenderElement::setAttributes($element); $variables['attributes'] = isset($element['#attributes']) ? $element['#attributes'] : array(); $variables['prefix'] = isset($element['#field_prefix']) ? $element['#field_prefix'] : NULL; $variables['suffix'] = isset($element['#field_suffix']) ? $element['#field_suffix'] : NULL; @@ -376,7 +377,7 @@ function template_preprocess_form(&$variables) { function template_preprocess_textarea(&$variables) { $element = $variables['element']; Element::setAttributes($element, array('id', 'name', 'rows', 'cols', 'placeholder')); - Element\RenderElement::setAttributes($element, array('form-textarea')); + RenderElement::setAttributes($element, array('form-textarea')); $variables['wrapper_attributes'] = new Attribute(); $variables['attributes'] = new Attribute($element['#attributes']); $variables['value'] = $element['#value']; diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc index 7a9812f4a..1938ed691 100644 --- a/core/includes/install.core.inc +++ b/core/includes/install.core.inc @@ -7,7 +7,6 @@ use Drupal\Component\Utility\UrlHelper; use Drupal\Core\DrupalKernel; -use Drupal\Core\Config\BootstrapConfigStorageFactory; use Drupal\Core\Database\Database; use Drupal\Core\Database\DatabaseExceptionWrapper; use Drupal\Core\Form\FormState; @@ -489,8 +488,7 @@ function install_begin_request($class_loader, &$install_state) { // Ensure that the active configuration is empty before installation starts. if ($install_state['config_verified'] && empty($task)) { - $config = BootstrapConfigStorageFactory::get()->listAll(); - if (!empty($config)) { + if (count($kernel->getConfigStorage()->listAll())) { $task = NULL; throw new AlreadyInstalledException($container->get('string_translation')); } @@ -1799,7 +1797,7 @@ function install_check_translations($langcode, $server_pattern) { $writable = FALSE; // @todo: Make this configurable. $site_path = \Drupal::service('site.path'); - $files_directory = $site_path . '/files'; + $files_directory = $site_path . '/files'; $translations_directory = $site_path . '/files/translations'; $translations_directory_exists = FALSE; $online = FALSE; diff --git a/core/includes/install.inc b/core/includes/install.inc index 31207994e..6578a83ec 100644 --- a/core/includes/install.inc +++ b/core/includes/install.inc @@ -515,7 +515,7 @@ function drupal_install_config_directories() { // they can later be added to git. Since this directory is auto-created, we // have to write out the README rather than just adding it to the drupal core // repo. - $text = 'This directory contains configuration to be imported into your Drupal site. To make this configuration active, visit admin/config/development/configuration/sync.' .' For information about deploying configuration between servers, see https://www.drupal.org/documentation/administer/config'; + $text = 'This directory contains configuration to be imported into your Drupal site. To make this configuration active, visit admin/config/development/configuration/sync.' .' For information about deploying configuration between servers, see https://www.drupal.org/documentation/administer/config'; file_put_contents(config_get_config_directory(CONFIG_SYNC_DIRECTORY) . '/README.txt', $text); } diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 54b038b6b..ec97db2dc 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -580,20 +580,29 @@ function template_preprocess_datetime_wrapper(&$variables) { * * Default template: links.html.twig. * + * Unfortunately links templates duplicate the "active" class handling of l() + * and LinkGenerator::generate() because it needs to be able to set the "active" + * class not on the links themselves ("a" tags), but on the list items ("li" + * tags) that contain the links. This is necessary for CSS to be able to style + * list items differently when the link is active, since CSS does not yet allow + * one to style list items only if it contains a certain element with a certain + * class. I.e. we cannot yet convert this jQuery selector to a CSS selector: + * jQuery('li:has("a.is-active")') + * * @param array $variables * An associative array containing: * - links: An array of links to be themed. Each link should be itself an * array, with the following elements: * - title: The link text. - * - url: (optional) The url object to link to. If omitted, no a tag is - * printed out. + * - url: (optional) The \Drupal\Core\Url object to link to. If omitted, no + * anchor tag is printed out. * - attributes: (optional) Attributes for the anchor, or for the * tag used in its place if no 'href' is supplied. If element 'class' is * included, it must be an array of one or more class names. * If the 'href' element is supplied, the entire link array is passed to * l() as its $options parameter. - * - attributes: A keyed array of attributes for the UL containing the - * list of links. + * - attributes: A keyed array of attributes for the