Commit 672d6167 authored by Project Update Bot's avatar Project Update Bot Committed by Rainer Halbmann
Browse files

Issue #3287345 by Project Update Bot: Automated Drupal 10 compatibility fixes

parent baf8eece
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
name: EntityTools
type: module
description: Provides entity tools.
core_version_requirement: ^8.7.7 || ^9
core_version_requirement: ^8.7.7 || ^9 || ^10
+2 −1
Original line number Diff line number Diff line
<?php

use Drupal\Core\Entity\EntityInterface;
/**
 * @file EntityTools module.
 */
@@ -9,7 +10,7 @@ use Drupal\entitytools\EntityOriginalCache;
/**
 * Implements hook_entity_presave().
 */
function entitytools_entity_presave(Drupal\Core\Entity\EntityInterface $entity) {
function entitytools_entity_presave(EntityInterface $entity) {
  // Ugly kitten massacre hack until we have
  // https://www.drupal.org/project/paragraphs/issues/3013961
  EntityOriginalCache::preSave($entity);
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ class AdminPageTest extends BrowserTestBase {
  public function testAdminPage() {
    $this->drupalLogin($this->rootUser);
    $this->drupalGet('admin');
    $this->assertResponse(200);
    $this->assertSession()->statusCodeEquals(200);

    // Ensure that the test is not marked as risky because of no assertions.
    // see https://gitlab.com/weitzman/drupal-test-traits/-/commit/82bf5059908f9073b3468cb7313960da72176d9a