function GetTestMethodCallerExtendsTest::testGetTestMethodCallerChildClass

Same name in other branches
  1. 9 core/tests/Drupal/FunctionalTests/GetTestMethodCallerExtendsTest.php \Drupal\FunctionalTests\GetTestMethodCallerExtendsTest::testGetTestMethodCallerChildClass()
  2. 8.9.x core/tests/Drupal/FunctionalTests/GetTestMethodCallerExtendsTest.php \Drupal\FunctionalTests\GetTestMethodCallerExtendsTest::testGetTestMethodCallerChildClass()
  3. 11.x core/tests/Drupal/FunctionalTests/GetTestMethodCallerExtendsTest.php \Drupal\FunctionalTests\GetTestMethodCallerExtendsTest::testGetTestMethodCallerChildClass()

A test method that is not present in the parent class.

File

core/tests/Drupal/FunctionalTests/GetTestMethodCallerExtendsTest.php, line 24

Class

GetTestMethodCallerExtendsTest
Test for BrowserTestBase::getTestMethodCaller() in child classes.

Namespace

Drupal\FunctionalTests

Code

public function testGetTestMethodCallerChildClass() : void {
    $method_caller = $this->getTestMethodCaller();
    $expected = [
        'file' => __FILE__,
        'line' => 25,
        'function' => __CLASS__ . '->' . __FUNCTION__ . '()',
        'class' => BrowserTestBase::class,
        'object' => $this,
        'type' => '->',
        'args' => [],
    ];
    $this->assertEquals($expected, $method_caller);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.