public function ExtensionListTest::testSetPathname in Drupal 8
Same name and namespace in other branches
- 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\ExtensionCode
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'));
}