You are here

public function TestBaseTest::testFail in Drupal 8

@covers ::fail

File

core/modules/simpletest/tests/src/Unit/TestBaseTest.php, line 411

Class

TestBaseTest
@requires extension curl @coversDefaultClass \Drupal\simpletest\TestBase @group simpletest @group TestBase

Namespace

Drupal\Tests\simpletest\Unit

Code

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