comparison core/tests/Drupal/Tests/SkippedDeprecationTest.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
1 <?php
2
3 namespace Drupal\Tests;
4
5 /**
6 * @group Test
7 */
8 class SkippedDeprecationTest extends UnitTestCase {
9
10 /**
11 * Tests skipping deprecations in unit tests.
12 *
13 * @see \Drupal\Tests\Listeners\DeprecationListenerTrait::getSkippedDeprecations()
14 */
15 public function testSkippingDeprecations() {
16 @trigger_error('\Drupal\Tests\SkippedDeprecationTest deprecation', E_USER_DEPRECATED);
17 $this->addToAssertionCount(1);
18 }
19
20 /**
21 * Tests skipping deprecations in unit tests multiple times.
22 *
23 * @see \Drupal\Tests\Listeners\DeprecationListenerTrait::getSkippedDeprecations()
24 */
25 public function testSkippingDeprecationsAgain() {
26 @trigger_error('\Drupal\Tests\SkippedDeprecationTest deprecation', E_USER_DEPRECATED);
27 $this->addToAssertionCount(1);
28 }
29
30 }