Mercurial > hg > isophonics-drupal-site
comparison core/modules/simpletest/tests/src/Kernel/SimpletestDeprecationTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\Tests\simpletest\Kernel; | |
4 | |
5 use Drupal\KernelTests\KernelTestBase; | |
6 | |
7 /** | |
8 * Verify deprecation of simpletest. | |
9 * | |
10 * @group simpletest | |
11 * @group legacy | |
12 */ | |
13 class SimpletestDeprecationTest extends KernelTestBase { | |
14 | |
15 public static $modules = ['simpletest']; | |
16 | |
17 /** | |
18 * @expectedDeprecation The simpletest_phpunit_configuration_filepath function is deprecated since version 8.4.x and will be removed in 9.0.0. | |
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. | |
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. | |
21 */ | |
22 public function testDeprecatedFunctions() { | |
23 $this->assertNotEmpty(simpletest_phpunit_configuration_filepath()); | |
24 $this->assertNotEmpty(simpletest_test_get_all()); | |
25 simpletest_classloader_register(); | |
26 } | |
27 | |
28 } |