Skip to content
Snippets Groups Projects

Issue #3287280: Automated Drupal 10 compatibility fixes

Files
5
@@ -37,7 +37,7 @@ class EnforcedIntegrityTest extends BrowserTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->drupalLogin($this->rootUser);
}
@@ -71,9 +71,10 @@ class EnforcedIntegrityTest extends BrowserTestBase {
// Initially, deleting an entity should be fine if it's not enabled.
$this->assertSession()->elementsCount('css', '.form-submit', 1);
$this->assertSession()->elementNotExists('css', '.form-submit[disabled]');
$this->drupalGet('admin/config/content/entity-reference-integrity');
// Enable protection of the entity type.
$this->drupalPostForm('admin/config/content/entity-reference-integrity', [
$this->submitForm([
sprintf('enabled_entity_type_ids[%s]', $entity->getEntityTypeId()) => TRUE,
], 'Save configuration');
Loading