function DeprecationHandler::getExpectedDeprecations

Returns all expected deprecations.

Return value

list<string> The expected deprecation messages.

1 call to DeprecationHandler::getExpectedDeprecations()
ExpectDeprecationTrait::tearDownErrorHandler in core/tests/Drupal/TestTools/Extension/DeprecationBridge/ExpectDeprecationTrait.php
Tears down the test error handler.

File

core/tests/Drupal/TestTools/Extension/DeprecationBridge/DeprecationHandler.php, line 165

Class

DeprecationHandler
Drupal's PHPUnit extension to manage code deprecation.

Namespace

Drupal\TestTools\Extension\DeprecationBridge

Code

public static function getExpectedDeprecations() : array {
    if (!self::isEnabled()) {
        throw new \LogicException(__CLASS__ . ' is not initialized');
    }
    return self::$expectedDeprecations;
}

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