annotate core/tests/Drupal/Tests/SkippedDeprecationTest.php @ 18:af1871eacc83

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