Skip to content
Snippets Groups Projects
Commit 8f456ee4 authored by project update bot's avatar project update bot Committed by Steven Ayers
Browse files

Issue #3431521: Automated Drupal 11 compatibility fixes for knowledge

parent 6fada02b
Branches
Tags
1 merge request!3Automated Project Update Bot fixes
Pipeline #262044 failed
......@@ -46,8 +46,15 @@ include:
#
# Docs at https://git.drupalcode.org/project/gitlab_templates/-/blob/1.0.x/includes/include.drupalci.variables.yml
################
# variables:
# SKIP_ESLINT: '1'
variables:
_PHPUNIT_EXTRA: --verbose
OPT_IN_TEST_PREVIOUS_MAJOR: 1
OPT_IN_TEST_PREVIOUS_MINOR: 1
OPT_IN_TEST_NEXT_MINOR: 1
OPT_IN_TEST_NEXT_MAJOR: 1
OPT_IN_TEST_MAX_PHP: 1
# _PHPUNIT_CONCURRENT=1 uses run-tests.sh, 0 uses phpunit directly.
_PHPUNIT_CONCURRENT: 1
###################################################################################
......
......@@ -10,7 +10,7 @@
"require": {
"drupal/autocomplete_id": "^1.5",
"drupal/charts": "^5.0",
"drupal/core": "^9 || ^10",
"drupal/core": "^9 || ^10 || ^11",
"drupal/field_group": "^3.4",
"drupal/moderation_note": "^1.0-beta5",
"drupal/search_api": "^1.0",
......
......@@ -13,10 +13,8 @@
}
/* Wide screens */
@media
screen and (min-width: 780px),
@media screen and (min-width: 780px),
(orientation: landscape) and (min-device-height: 780px) {
.layout-region-node-main,
.layout-region-node-footer {
float: left; /* LTR */
......@@ -63,9 +61,7 @@ screen and (min-width: 780px),
* toolbar is on, we need to suppress layout for the original media width + the
* toolbar width (240px). In this case, 240px + 780px.
*/
@media
screen and (max-width: 1020px) {
@media screen and (max-width: 1020px) {
.toolbar-vertical.toolbar-tray-open .layout-region-node-main,
.toolbar-vertical.toolbar-tray-open .layout-region-node-footer,
.toolbar-vertical.toolbar-tray-open .layout-region-node-secondary {
......
.competency-table-report td:last-child::after {
content: '%';
content: "%";
}
......@@ -11,6 +11,11 @@ use Drupal\Tests\knowledge\Functional\KnowledgeTestBase as KnowledgeBrowserTestB
*/
class KnowledgeEditTest extends KnowledgeBrowserTestBase {
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}
*/
......
......@@ -134,7 +134,7 @@ class KnowledgeOrphanTest extends EntityKernelTestBase {
/**
* Provides test data for testOrphan.
*/
public function providerTestOrphan() {
public static function providerTestOrphan() {
return [
['entity_id'],
['uid'],
......
......@@ -71,6 +71,7 @@ class KnowledgeLinkBuilderTest extends UnitTestCase {
* Prepares mocks for the test.
*/
protected function setUp(): void {
parent::setUp();
$this->knowledgeManager = $this->createMock('\Drupal\knowledge\KnowledgeManagerInterface');
$this->stringTranslation = $this->getStringTranslationStub();
$this->entityTypeManager = $this->createMock(EntityTypeManagerInterface::class);
......
......@@ -50,6 +50,7 @@ class KnowledgeStatisticsUnitTest extends UnitTestCase {
* Sets up required mocks and the KnowledgeStatistics service under test.
*/
protected function setUp(): void {
parent::setUp();
$this->statement = $this->createMock('Drupal\sqlite\Driver\Database\sqlite\Statement');
$this->statement->expects($this->any())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment