public function GetTestMethodCallerExtendsTest::testGetTestMethodCallerChildClass in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/FunctionalTests/GetTestMethodCallerExtendsTest.php \Drupal\FunctionalTests\GetTestMethodCallerExtendsTest::testGetTestMethodCallerChildClass()
- 9 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 22
Class
- GetTestMethodCallerExtendsTest
- Test for BrowserTestBase::getTestMethodCaller() in child classes.
Namespace
Drupal\FunctionalTestsCode
public function testGetTestMethodCallerChildClass() {
$method_caller = $this
->getTestMethodCaller();
$expected = [
'file' => __FILE__,
'line' => 23,
'function' => __CLASS__ . '->' . __FUNCTION__ . '()',
'class' => BrowserTestBase::class,
'object' => $this,
'type' => '->',
'args' => [],
];
$this
->assertEquals($expected, $method_caller);
}