AssertContentTrait.php

Same filename in this branch
  1. 8.9.x core/tests/Drupal/KernelTests/AssertContentTrait.php
Same filename in other branches
  1. 9 core/tests/Drupal/KernelTests/AssertContentTrait.php
  2. 10 core/tests/Drupal/KernelTests/AssertContentTrait.php
  3. 11.x core/tests/Drupal/KernelTests/AssertContentTrait.php

Namespace

Drupal\simpletest

File

core/modules/simpletest/src/AssertContentTrait.php

View source
<?php

namespace Drupal\simpletest;

use Drupal\KernelTests\AssertContentTrait as CoreAssertContentTrait;
@trigger_error('\\Drupal\\simpletest\\AssertContentTrait is deprecated in Drupal 8.6.0 and will be removed before Drupal 9.0.0. Instead, use \\Drupal\\KernelTests\\AssertContentTrait.', E_USER_DEPRECATED);

/**
 * Provides test methods to assert content.
 *
 * @deprecated in drupal:8.6.0 and is removed from drupal:9.0.0. Use
 *   Drupal\KernelTests\AssertContentTrait instead.
 *
 * @see https://www.drupal.org/node/2943146
 */
trait AssertContentTrait {
    use CoreAssertContentTrait;

}

Traits

Title Deprecated Summary
AssertContentTrait

in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\KernelTests\AssertContentTrait instead.

Provides test methods to assert content.

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