Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / tests / Drupal / FunctionalTests / GetTestMethodCallerTest.php
1 <?php
2
3 namespace Drupal\FunctionalTests;
4
5 use Drupal\Tests\BrowserTestBase;
6
7 /**
8  * Explicit test for BrowserTestBase::getTestMethodCaller().
9  *
10  * @group browsertestbase
11  */
12 class GetTestMethodCallerTest extends BrowserTestBase {
13
14   /**
15    * Tests BrowserTestBase::getTestMethodCaller().
16    */
17   public function testGetTestMethodCaller() {
18     $method_caller = $this->getTestMethodCaller();
19     $expected = [
20       'file' => __FILE__,
21       'line' => 18,
22       'function' => __CLASS__ . '->' . __FUNCTION__ . '()',
23       'class' => BrowserTestBase::class,
24       'object' => $this,
25       'type' => '->',
26       'args' => [],
27     ];
28     $this->assertEquals($expected, $method_caller);
29   }
30
31 }