annotate 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
rev   line source
Chris@5 1 <?php
Chris@5 2
Chris@5 3 namespace Drupal\Tests;
Chris@5 4
Chris@5 5 /**
Chris@5 6 * @group Test
Chris@5 7 */
Chris@5 8 class SkippedDeprecationTest extends UnitTestCase {
Chris@5 9
Chris@5 10 /**
Chris@5 11 * Tests skipping deprecations in unit tests.
Chris@5 12 *
Chris@5 13 * @see \Drupal\Tests\Listeners\DeprecationListenerTrait::getSkippedDeprecations()
Chris@5 14 */
Chris@5 15 public function testSkippingDeprecations() {
Chris@5 16 @trigger_error('\Drupal\Tests\SkippedDeprecationTest deprecation', E_USER_DEPRECATED);
Chris@5 17 $this->addToAssertionCount(1);
Chris@5 18 }
Chris@5 19
Chris@5 20 /**
Chris@5 21 * Tests skipping deprecations in unit tests multiple times.
Chris@5 22 *
Chris@5 23 * @see \Drupal\Tests\Listeners\DeprecationListenerTrait::getSkippedDeprecations()
Chris@5 24 */
Chris@5 25 public function testSkippingDeprecationsAgain() {
Chris@5 26 @trigger_error('\Drupal\Tests\SkippedDeprecationTest deprecation', E_USER_DEPRECATED);
Chris@5 27 $this->addToAssertionCount(1);
Chris@5 28 }
Chris@5 29
Chris@5 30 }