class GetTestMethodCallerTest

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/FunctionalTests/GetTestMethodCallerTest.php \Drupal\FunctionalTests\GetTestMethodCallerTest

Explicit test for BrowserTestBase::getTestMethodCaller().

@group browsertestbase

Hierarchy

Expanded class hierarchy of GetTestMethodCallerTest

File

core/tests/Drupal/FunctionalTests/GetTestMethodCallerTest.php, line 12

Namespace

Drupal\FunctionalTests
View source
class GetTestMethodCallerTest extends BrowserTestBase {
  
  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'stark';
  
  /**
   * Tests BrowserTestBase::getTestMethodCaller().
   */
  public function testGetTestMethodCaller() {
    $method_caller = $this->getTestMethodCaller();
    $expected = [
      'file' => __FILE__,
      'line' => 23,
      '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.