You are here

public function ExtensionListTest::testSetPathname in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php \Drupal\Tests\Core\Extension\ExtensionListTest::testSetPathname()
  2. 9 core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php \Drupal\Tests\Core\Extension\ExtensionListTest::testSetPathname()

@covers ::setPathname @covers ::getPathname

File

core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php, line 163

Class

ExtensionListTest
@coversDefaultClass \Drupal\Core\Extension\ExtensionList @group Extension

Namespace

Drupal\Tests\Core\Extension

Code

public function testSetPathname() {
  $test_extension_list = $this
    ->setupTestExtensionList();
  $test_extension_list
    ->setPathname('test_name', 'vfs://drupal_root/example2/test_name/test_name.info.yml');
  $this
    ->assertEquals('vfs://drupal_root/example2/test_name/test_name.info.yml', $test_extension_list
    ->getPathname('test_name'));
}