Results

05.02.2020
simpletest 8.x-3.x-dev :: src/ContentTypeCreationTrait.php
3
4
5
6
7
8
9
10
11
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
3
4
5
6
7
8
9
10
11
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
5
6
7
8
9
10
11
12
13
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
3
4
5
6
7
8
9
10
11
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
3
4
5
6
7
8
9
10
11
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
3
4
5
6
7
8
9
10
11
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
1313
1314
1315
1316
1317
1318
1319
1320
1321
  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
3
4
5
6
7
8
9
10
11
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
3
4
5
6
7
8
9
10
11
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
3
4
5
6
7
8
9
10
11
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
3
4
5
6
7
8
9
10
11
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
201
202
203
204
205
206
207
208
209
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}.
 *
217
218
219
220
221
222
223
224
225
*/
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.
 *
237
238
239
240
241
242
243
244
245
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.
 *
257
258
259
260
261
262
263
264
265
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.
 *
274
275
276
277
278
279
280
281
282
*/
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.
 *
302
303
304
305
306
307
308
309
310
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.
 *
319
320
321
322
323
324
325
326
327
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().
 */
433
434
435
436
437
438
439
440
441
*/
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.
 *
459
460
461
462
463
464
465
466
467
*/
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.
497
498
499
500
501
502
503
504
505
*/
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.
 *
531
532
533
534
535
536
537
538
539
*/
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.
 *
542
543
544
545
546
547
548
549
550
*/
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.
 *
574
575
576
577
578
579
580
581
582
*/
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':
610
611
612
613
614
615
616
617
618
*/
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();
}
 
/**
626
627
628
629
630
631
632
633
634
*/
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();
}
 
/**
643
644
645
646
647
648
649
650
651
*/
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();
}
 
/**
665
666
667
668
669
670
671
672
673
*/
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);
  }
694
695
696
697
698
699
700
701
702
*/
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.
 *
715
716
717
718
719
720
721
722
723
*/
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.
 *
736
737
738
739
740
741
742
743
744
*/
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
61
62
63
64
65
66
67
68
69
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
5
6
7
8
9
10
11
12
13
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
21
22
23
24
25
26
27
28
29
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
  $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
14
15
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
14
15
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
14
15
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
14
15
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);

Pages

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc