Mercurial > hg > isophonics-drupal-site
annotate core/modules/simpletest/tests/src/Kernel/SimpletestDeprecationTest.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 129ea1e6d783 |
children |
rev | line source |
---|---|
Chris@17 | 1 <?php |
Chris@17 | 2 |
Chris@17 | 3 namespace Drupal\Tests\simpletest\Kernel; |
Chris@17 | 4 |
Chris@17 | 5 use Drupal\KernelTests\KernelTestBase; |
Chris@17 | 6 |
Chris@17 | 7 /** |
Chris@17 | 8 * Verify deprecation of simpletest. |
Chris@17 | 9 * |
Chris@17 | 10 * @group simpletest |
Chris@17 | 11 * @group legacy |
Chris@17 | 12 */ |
Chris@17 | 13 class SimpletestDeprecationTest extends KernelTestBase { |
Chris@17 | 14 |
Chris@17 | 15 public static $modules = ['simpletest']; |
Chris@17 | 16 |
Chris@17 | 17 /** |
Chris@17 | 18 * @expectedDeprecation The simpletest_phpunit_configuration_filepath function is deprecated since version 8.4.x and will be removed in 9.0.0. |
Chris@17 | 19 * @expectedDeprecation The simpletest_test_get_all 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. |
Chris@17 | 20 * @expectedDeprecation The simpletest_classloader_register function is deprecated in version 8.3.x and will be removed in 9.0.0. Use \Drupal::service('test_discovery')->registerTestNamespaces() instead. |
Chris@17 | 21 */ |
Chris@17 | 22 public function testDeprecatedFunctions() { |
Chris@17 | 23 $this->assertNotEmpty(simpletest_phpunit_configuration_filepath()); |
Chris@17 | 24 $this->assertNotEmpty(simpletest_test_get_all()); |
Chris@17 | 25 simpletest_classloader_register(); |
Chris@17 | 26 } |
Chris@17 | 27 |
Chris@17 | 28 } |