Skip to content
Snippets Groups Projects
Commit c8df1743 authored by David Galeano's avatar David Galeano Committed by Joachim Noreiko
Browse files

Issue #3228042: Automated Drupal 9 compatibility fixes

parent 408539b3
Branches
Tags
1 merge request!2Issue #3228042: Automated Drupal 9 compatibility fixes
......@@ -4,7 +4,7 @@
"require" : {
"php": "~7.1",
"bartfeenstra/fu": "^0.3.4",
"drupal/core": "~8.3"
"drupal/core": "^8 || ^9"
},
"require-dev" : {
"drupal/coder": "~8.2.12"
......
name: Entity Reference Guards
description: Guards entity references, ensuring they remain synchronized with their targets.
core: 8.x
core_version_requirement: ^8.8 || ^9
type: module
......@@ -19,6 +19,11 @@ class OnDeleteReferentProtectReferentTest extends BrowserTestBase {
*/
public static $modules = ['erg_test'];
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* Tests entity reference deletion.
*/
......@@ -36,7 +41,7 @@ class OnDeleteReferentProtectReferentTest extends BrowserTestBase {
$users = $referee->get('users')->referencedEntities();
$this->assertSame($user->id(), $users[0]->id());
$this->setExpectedException(EntityStorageException::class);
$this->expectException(EntityStorageException::class);
$user->delete();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment