You are here

public function DeprecatedModerationStateViewsRelationshipTest::testCodeDeprecationModerationStateRelationships in Drupal 8

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');
}