You are here

public function GetTestMethodCallerExtendsTest::testGetTestMethodCallerChildClass in Drupal 8

Same name and namespace in other branches
  1. 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\FunctionalTests

Code

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);
}