Results
05.02.2020
simpletest 8.x-3.x-dev ::
src/ContentTypeCreationTrait.php
namespace Drupal\simpletest; @trigger_error(__NAMESPACE__ . '\ContentTypeCreationTrait is deprecated in Drupal 8.4.x. Will be removed before Drupal 9.0.0. Use \Drupal\Tests\node\Traits\ContentTypeCreationTrait instead. See https://www.drupal.org/node/2884454.', E_USER_DEPRECATED); use Drupal\Tests\node\Traits\ContentTypeCreationTrait as BaseContentTypeCreationTrait; /** * Provides methods to create content type from given values. *
05.02.2020
simpletest 8.x-3.x-dev ::
src/RandomGeneratorTrait.php
namespace Drupal\simpletest; @trigger_error(__NAMESPACE__ . '\RandomGeneratorTrait is deprecated in Drupal 8.1.1, will be removed before Drupal 9.0.0. Use \Drupal\Tests\RandomGeneratorTrait instead.', E_USER_DEPRECATED); use Drupal\Tests\RandomGeneratorTrait as BaseGeneratorTrait; /** * Provides random generator utility methods. *
05.02.2020
simpletest 8.x-3.x-dev ::
src/AssertContentTrait.php
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, to be removed before Drupal 9.0.0. Use
* Drupal\KernelTests\AssertContentTrait instead. 05.02.2020
simpletest 8.x-3.x-dev ::
src/AssertHelperTrait.php
namespace Drupal\simpletest; @trigger_error(__NAMESPACE__ . '\AssertHelperTrait is deprecated in Drupal 8.4.x. Will be removed before Drupal 9.0.0. Use Drupal\Tests\AssertHelperTrait instead. See https://www.drupal.org/node/2884454.', E_USER_DEPRECATED); use Drupal\Tests\AssertHelperTrait as BaseAssertHelperTrait; /** * Provides helper methods for assertions. *
05.02.2020
simpletest 8.x-3.x-dev ::
src/BlockCreationTrait.php
namespace Drupal\simpletest; @trigger_error(__NAMESPACE__ . '\BlockCreationTrait is deprecated in Drupal 8.4.x. Will be removed before Drupal 9.0.0. Use \Drupal\Tests\block\Traits\BlockCreationTrait instead. See https://www.drupal.org/node/2884454.', E_USER_DEPRECATED); use Drupal\Tests\block\Traits\BlockCreationTrait as BaseBlockCreationTrait; /** * Provides methods to create and place block with default settings. *
05.02.2020
simpletest 8.x-3.x-dev ::
src/SessionTestTrait.php
namespace Drupal\simpletest; @trigger_error(__NAMESPACE__ . '\SessionTestTrait is deprecated in Drupal 8.1.1 will be removed before 9.0.0. Use \Drupal\Tests\SessionTestTrait instead.', E_USER_DEPRECATED); use Drupal\Tests\SessionTestTrait as BaseSessionTestTrait; /** * Provides methods to generate and get session name in tests. *
05.02.2020
simpletest 8.x-3.x-dev ::
src/TestBase.php
E_RECOVERABLE_ERROR => 'Recoverable error',
E_DEPRECATED => 'Deprecated',
E_USER_DEPRECATED => 'User deprecated',
];
$backtrace = debug_backtrace();
// Add verbose backtrace for errors, but not for debug() messages.
if ($severity !== E_USER_NOTICE) { 05.02.2020
simpletest 8.x-3.x-dev ::
src/BrowserTestBase.php
namespace Drupal\simpletest; @trigger_error(__NAMESPACE__ . '\BrowserTestBase is deprecated in Drupal 8.1.x, will be removed before Drupal 9.0. Use Drupal\Tests\BrowserTestBase instead.', E_USER_DEPRECATED); use Drupal\Tests\BrowserTestBase as BaseBrowserTestBase; /** * Provides a test case for functional Drupal tests. *
05.02.2020
simpletest 8.x-3.x-dev ::
src/KernelTestBase.php
namespace Drupal\simpletest; @trigger_error(__NAMESPACE__ . '\KernelTestBase is deprecated in Drupal 8.0.x, will be removed before Drupal 9.0.0. Use \Drupal\KernelTests\KernelTestBase instead.', E_USER_DEPRECATED); use Drupal\Component\Utility\Html; use Drupal\Component\Render\FormattableMarkup; use Drupal\Component\Utility\Variable; use Drupal\Core\Config\Development\ConfigSchemaChecker; use Drupal\Core\Database\Database;
05.02.2020
simpletest 8.x-3.x-dev ::
src/UserCreationTrait.php
namespace Drupal\simpletest; @trigger_error(__NAMESPACE__ . '\UserCreationTrait is deprecated in Drupal 8.4.x. Will be removed before Drupal 9.0.0. Use Drupal\Tests\user\Traits\UserCreationTrait instead. See https://www.drupal.org/node/2884454.', E_USER_DEPRECATED); use Drupal\Tests\user\Traits\UserCreationTrait as BaseUserCreationTrait; /** * Provides methods to create additional test users and switch the currently * logged in one.
05.02.2020
simpletest 8.x-3.x-dev ::
src/TestDiscovery.php
namespace Drupal\simpletest; @trigger_error(__NAMESPACE__ . '\\TestDiscovery is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\TestDiscovery instead. See https://www.drupal.org/node/2949692', E_USER_DEPRECATED); use Doctrine\Common\Reflection\StaticReflectionParser; use Drupal\Component\Annotation\Reflection\MockFileFinder; use Drupal\Component\Utility\NestedArray; use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Test\Exception\MissingGroupException;
05.02.2020
simpletest 8.x-3.x-dev ::
simpletest.module
function simpletest_run_phpunit_tests($test_id, array $unescaped_test_classnames, &$status = NULL) {
$runner = PhpUnitTestRunner::create(\Drupal::getContainer());
@trigger_error(__FUNCTION__ . ' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\PhpUnitTestRunner::runTests() instead. See https://www.drupal.org/node/2948547', E_USER_DEPRECATED);
return $runner->runTests($test_id, $unescaped_test_classnames, $status);
}
/**
* Inserts the parsed PHPUnit results into {simpletest}.
*
*/
function simpletest_process_phpunit_results($phpunit_results) {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\TestDatabase::processPhpUnitResults() instead. See https://www.drupal.org/node/3075252', E_USER_DEPRECATED);
TestDatabase::processPhpUnitResults($phpunit_results);
}
/**
* Maps phpunit results to a data structure for batch messages and run-tests.sh.
*
function simpletest_summarize_phpunit_result($results) {
$runner = PhpUnitTestRunner::create(\Drupal::getContainer());
@trigger_error(__FUNCTION__ . ' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\PhpUnitTestRunner::summarizeResults() instead. See https://www.drupal.org/node/2948547', E_USER_DEPRECATED);
return $runner->summarizeResults($results);
}
/**
* Returns the path to use for PHPUnit's --log-junit option.
*
function simpletest_phpunit_xml_filepath($test_id) {
$runner = PhpUnitTestRunner::create(\Drupal::getContainer());
@trigger_error(__FUNCTION__ . ' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\PhpUnitTestRunner::xmlLogFilepath() instead. See https://www.drupal.org/node/2948547', E_USER_DEPRECATED);
return $runner->xmlLogFilePath($test_id);
}
/**
* Returns the path to core's phpunit.xml.dist configuration file.
*
*/
function simpletest_phpunit_configuration_filepath() {
@trigger_error('The ' . __FUNCTION__ . ' function is deprecated since version 8.4.x and will be removed in 9.0.0.', E_USER_DEPRECATED);
return \Drupal::root() . '/core/phpunit.xml.dist';
}
/**
* Executes the PHPUnit command.
*
function simpletest_phpunit_run_command(array $unescaped_test_classnames, $phpunit_file, &$status = NULL, &$output = NULL) {
$runner = PhpUnitTestRunner::create(\Drupal::getContainer());
@trigger_error(__FUNCTION__ . ' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\PhpUnitTestRunner::runCommand() instead. See https://www.drupal.org/node/2948547', E_USER_DEPRECATED);
return $runner->runCommand($unescaped_test_classnames, $phpunit_file, $status, $output);
}
/**
* Returns the command to run PHPUnit.
*
function simpletest_phpunit_command() {
$runner = PhpUnitTestRunner::create(\Drupal::getContainer());
@trigger_error(__FUNCTION__ . ' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\PhpUnitTestRunner::phpUnitCommand() instead. See https://www.drupal.org/node/2948547', E_USER_DEPRECATED);
return $runner->phpUnitCommand();
}
/**
* Implements callback_batch_operation().
*/
*/
function simpletest_last_test_get($test_id) {
@trigger_error(__FUNCTION__ . ' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\TestDatabase::lastTestGet() instead. See https://www.drupal.org/node/3075252', E_USER_DEPRECATED);
return array_values(TestDatabase::lastTestGet($test_id));
}
/**
* Reads the error log and reports any errors as assertion failures.
*
*/
function simpletest_log_read($test_id, $database_prefix, $test_class) {
@trigger_error(__FUNCTION__ . ' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\TestDatabase::logRead() instead. See https://www.drupal.org/node/3075252', E_USER_DEPRECATED);
$test_db = new TestDatabase($database_prefix);
return $test_db->logRead($test_id, $test_class);
}
/**
* Store an assertion from outside the testing context.
*/
function simpletest_insert_assert($test_id, $test_class, $status, $message = '', $group = 'Other', array $caller = []) {
@trigger_error(__FUNCTION__ . ' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\TestDatabase::insertAssert() instead. See https://www.drupal.org/node/3075252', E_USER_DEPRECATED);
TestDatabase::insertAssert($test_id, $test_class, $status, $message, $group, $caller);
}
/**
* Gets a list of all of the tests provided by the system.
*
*/
function simpletest_test_get_all($extension = NULL, array $types = []) {
@trigger_error('The ' . __FUNCTION__ . ' function is deprecated in version 8.3.x and will be removed in 9.0.0. Use \Drupal::service(\'test_discovery\')->getTestClasses($extension, $types) instead.', E_USER_DEPRECATED);
return \Drupal::service('test_discovery')->getTestClasses($extension, $types);
}
/**
* Registers test namespaces of all extensions and core test classes.
*
*/
function simpletest_classloader_register() {
@trigger_error('The ' . __FUNCTION__ . ' function is deprecated in version 8.3.x and will be removed in 9.0.0. Use \Drupal::service(\'test_discovery\')->registerTestNamespaces() instead.', E_USER_DEPRECATED);
\Drupal::service('test_discovery')->registerTestNamespaces();
}
/**
* Generates a test file.
*
*/
function simpletest_generate_file($filename, $width, $lines, $type = 'binary-text') {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\TestFileCreationTrait::generateFile() instead. See https://www.drupal.org/node/3077768', E_USER_DEPRECATED);
$text = '';
for ($i = 0; $i < $lines; $i++) {
// Generate $width - 1 characters to leave space for the "\n" character.
for ($j = 0; $j < $width - 1; $j++) {
switch ($type) {
case 'text':
*/
function simpletest_clean_environment() {
@trigger_error(__FUNCTION__ . ' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Access the environment_cleaner service and call its cleanEnvironment() method, or use \Drupal\Core\Test\EnvironmentCleaner::cleanEnvironment() instead.. See https://www.drupal.org/node/3076634', E_USER_DEPRECATED);
/* @var $cleaner \Drupal\simpletest\EnvironmentCleanerService */
$cleaner = \Drupal::service('environment_cleaner');
$cleaner->cleanEnvironment();
}
/**
*/
function simpletest_clean_database() {
@trigger_error(__FUNCTION__ . ' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Access the environment_cleaner service and call its cleanDatabase() method, or use \Drupal\Core\Test\EnvironmentCleaner::cleanDatabase() instead. See https://www.drupal.org/node/3076634', E_USER_DEPRECATED);
/* @var $cleaner \Drupal\simpletest\EnvironmentCleanerService */
$cleaner = \Drupal::service('environment_cleaner');
$cleaner->cleanDatabase();
}
/**
*/
function simpletest_clean_temporary_directories() {
@trigger_error(__FUNCTION__ . ' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Access the environment_cleaner service and call its cleanTemporaryDirectories() method, or use \Drupal\Core\Test\EnvironmentCleaner::cleanTemporaryDirectories() instead. See https://www.drupal.org/node/3076634', E_USER_DEPRECATED);
/* @var $cleaner \Drupal\simpletest\EnvironmentCleanerService */
$cleaner = \Drupal::service('environment_cleaner');
$cleaner->cleanTemporaryDirectories();
}
/**
*/
function simpletest_clean_results_table($test_id = NULL) {
@trigger_error(__FUNCTION__ . ' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Access the environment_cleaner service and call its cleanResultsTable() method, or use \Drupal\Core\Test\EnvironmentCleaner::cleanResultsTable() instead. See https://www.drupal.org/node/3076634', E_USER_DEPRECATED);
$count = 0;
if (\Drupal::config('simpletest.settings')->get('clear_results')) {
/* @var $cleaner \Drupal\simpletest\EnvironmentCleanerService */
$cleaner = \Drupal::service('environment_cleaner');
$count = $cleaner->cleanResultsTable($test_id);
}
*/
function simpletest_phpunit_xml_to_rows($test_id, $phpunit_xml_file) {
@trigger_error(__FUNCTION__ . ' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\JUnitConverter::xmlToRows() instead. See https://www.drupal.org/node/2948547', E_USER_DEPRECATED);
return JUnitConverter::xmlToRows($test_id, $phpunit_xml_file) ?: NULL;
}
/**
* Finds all test cases recursively from a test suite list.
*
*/
function simpletest_phpunit_find_testcases(\SimpleXMLElement $element, \SimpleXMLElement $parent = NULL) {
@trigger_error(__FUNCTION__ . ' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\JUnitConverter::findTestCases() instead. See https://www.drupal.org/node/2948547', E_USER_DEPRECATED);
return JUnitConverter::findTestCases($element, $parent);
}
/**
* Converts a PHPUnit test case result to a {simpletest} result row.
*
*/
function simpletest_phpunit_testcase_to_row($test_id, \SimpleXMLElement $test_case) {
@trigger_error(__FUNCTION__ . ' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\JUnitConverter::convertTestCaseToSimpletestRow() instead. See https://www.drupal.org/node/2948547', E_USER_DEPRECATED);
return JUnitConverter::convertTestCaseToSimpletestRow($test_id, $test_case);
}
/**
* Display test results from run-tests.sh in a browser.
* 02.05.2018
staged_content 8.x-1.0-alpha1 ::
src/Normalizer/NormalizerBase.php
protected function checkFormat($format = NULL) {
if (isset($this->formats)) {
@trigger_error('::formats is deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Use ::$format instead. See https://www.drupal.org/node/2868275', E_USER_DEPRECATED);
$this->format = $this->formats;
}
return parent::checkFormat($format);
} 07.06.2020
uptime_widget 8.x-1.x-dev ::
src/Plugin/Block/UptimeWidgetFancyBlock.php
use Drupal\Core\Form\FormStateInterface; @trigger_error(__NAMESPACE__ . '\UptimeWidgetFancyBlock is deprecated in uptime_widget 1.1, will be removed before uptime_widget 3.0. Use ' . __NAMESPACE__ . '\UptimeWidgetBlock instead.', E_USER_DEPRECATED); /** * Provides an 'Uptime' block. * * @Block( * id = "uptime_widget_fancy_block",
18.11.2019
webapp_json 8.x-1.0-beta3 ::
src/Normalizer/NormalizerBase.php
protected function checkFormat($format = NULL) {
if (isset($this->formats)) {
@trigger_error('::formats is deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Use ::$format instead. See https://www.drupal.org/node/2868275', E_USER_DEPRECATED);
$this->format = $this->formats;
}
return parent::checkFormat($format);
} 18.11.2019
webapp_json 8.x-1.0-beta3 ::
src/Normalizer/ContentEntityNormalizer.php
$this->menuLoader = $menu_loader;
if (!$entity_type_repository) {
@trigger_error('The entity_type.repository service must be passed to ContentEntityNormalizer::__construct(), it is required before Drupal 9.0.0. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED);
$entity_type_repository = Drupal::service('entity_type.repository');
}
$this->entityTypeRepository = $entity_type_repository;
if (!$entity_field_manager) {
@trigger_error('The entity_field.manager service must be passed to ContentEntityNormalizer::__construct(), it is required before Drupal 9.0.0. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED);
$entity_field_manager = Drupal::service('entity_field.manager');
}
$this->entityFieldManager = $entity_field_manager;
}
/** 02.06.2020
yoti 8.x-2.5 ::
sdk/Attrpubapi/MultiValue_Value.php
class_exists(MultiValue\Value::class);
@trigger_error('Attrpubapi\MultiValue_Value is deprecated and will be removed in the next major release. Use Attrpubapi\MultiValue\Value instead', E_USER_DEPRECATED); 02.06.2020
yoti 8.x-2.5 ::
sdk/Sharepubapi/DataEntry_Type.php
class_exists(DataEntry\Type::class);
@trigger_error('Sharepubapi\DataEntry_Type is deprecated and will be removed in the next major release. Use Sharepubapi\DataEntry\Type instead', E_USER_DEPRECATED); 02.06.2020
yoti 8.x-2.5 ::
sdk/protobuflib/Google/Protobuf/Internal/DescriptorProto_ReservedRange.php
class_exists(DescriptorProto\ReservedRange::class);
@trigger_error('Google\Protobuf\Internal\DescriptorProto_ReservedRange is deprecated and will be removed in the next major release. Use Google\Protobuf\Internal\DescriptorProto\ReservedRange instead', E_USER_DEPRECATED); 02.06.2020
yoti 8.x-2.5 ::
sdk/protobuflib/Google/Protobuf/Internal/EnumDescriptorProto_EnumReservedRange.php
class_exists(EnumDescriptorProto\EnumReservedRange::class);
@trigger_error('Google\Protobuf\Internal\EnumDescriptorProto_EnumReservedRange is deprecated and will be removed in the next major release. Use Google\Protobuf\Internal\EnumDescriptorProto\EnumReservedRange instead', E_USER_DEPRECATED); 