VendorStreamWrapperServiceTest.php in Vendor Stream Wrapper 8
File
tests/src/Kernel/VendorStreamWrapperServiceTest.php
View source
<?php
namespace Drupal\Tests\vendor_stream_wrapper\Kernel;
use Drupal\KernelTests\KernelTestBase;
class VendorStreamWrapperServiceTest extends KernelTestBase {
protected static $modules = [
'vendor_stream_wrapper',
];
public function testCreatUrlFromUri() {
$service = $this->container
->get('vendor_stream_wrapper.service');
$path = $service
->creatUrlFromUri('vendor://aceme/anvil/heavy.png');
$this
->assertEquals('/vendor_files/aceme/anvil/heavy.png', $path);
}
}