function SkeletonTest::testFail

Same name in other branches
  1. 3.x modules/testing_example/tests/src/Functional/SkeletonTest.php \Drupal\Tests\testing_example\Functional\SkeletonTest::testFail()

This test method fails, so we can be sure our test is discovered.

File

modules/testing_example/tests/src/Functional/SkeletonTest.php, line 86

Class

SkeletonTest
Skeleton functional test.

Namespace

Drupal\Tests\testing_example\Functional

Code

public function testFail() {
    // We comment out the fail assertion so that normal automated tests for
    // Examples don't fail. Uncomment the next line to see a fail.
    // $this->fail('The test runner found our test and failed it. Yay!');
    //
    // PHPUnit will complain if there is no assertion in our test method, so we
    // add this passing assertion. Comment or delete it if you'd like.
    $this->assertTrue(TRUE);
}