public function FileLocatorTest::testLocateWithGlobalResourcePath

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Config/FileLocatorTest.php, line 36

Class

FileLocatorTest

Namespace

Symfony\Component\HttpKernel\Tests\Config

Code

public function testLocateWithGlobalResourcePath() {
  $kernel = $this
    ->getMock('Symfony\\Component\\HttpKernel\\KernelInterface');
  $kernel
    ->expects($this
    ->atLeastOnce())
    ->method('locateResource')
    ->with('@BundleName/some/path', '/global/resource/path', false);
  $locator = new FileLocator($kernel, '/global/resource/path');
  $locator
    ->locate('@BundleName/some/path', null, false);
}