function DeprecatedModerationStateViewsRelationshipTest::testCodeDeprecationModerationStateRelationships

Test the deprecations are triggered when the deprecated code is executed.

@expectedDeprecation Moderation state relationships are deprecated in drupal:8.8.0 and is removed in drupal:9.0.0. See https://www.drupal.org/node/3061099

File

core/modules/content_moderation/tests/src/Functional/DeprecatedModerationStateViewsRelationshipTest.php, line 82

Class

DeprecatedModerationStateViewsRelationshipTest
Test the deprecated views relationships.

Namespace

Drupal\Tests\content_moderation\Functional

Code

public function testCodeDeprecationModerationStateRelationships() {
    $this->container
        ->get('module_installer')
        ->install([
        'content_moderation_test_views',
    ]);
    $this->drupalGet('test-content-moderation-base-table-test');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.