You are here

public function TestBaseTest::testFail in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/tests/src/Unit/TestBaseTest.php \Drupal\Tests\simpletest\Unit\TestBaseTest::testFail()

@covers ::fail

File

core/modules/simpletest/tests/src/Unit/TestBaseTest.php, line 414
Contains \Drupal\Tests\simpletest\Unit\TestBaseTest.

Class

TestBaseTest
@coversDefaultClass \Drupal\simpletest\TestBase @group simpletest

Namespace

Drupal\Tests\simpletest\Unit

Code

public function testFail() {
  $test_base = $this
    ->getTestBaseForAssertionTests('test_id');
  $this
    ->assertEquals(FALSE, $this
    ->invokeProtectedMethod($test_base, 'fail', array()));
}