You are here

public function KernelTest::testLocateResourceReturnsTheDirOneForResources in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/KernelTest.php \Symfony\Component\HttpKernel\Tests\KernelTest::testLocateResourceReturnsTheDirOneForResources()

File

vendor/symfony/http-kernel/Tests/KernelTest.php, line 507

Class

KernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

public function testLocateResourceReturnsTheDirOneForResources() {
  $kernel = $this
    ->getKernel(array(
    'getBundle',
  ));
  $kernel
    ->expects($this
    ->once())
    ->method('getBundle')
    ->will($this
    ->returnValue(array(
    $this
      ->getBundle(__DIR__ . '/Fixtures/FooBundle', null, null, 'FooBundle'),
  )));
  $this
    ->assertEquals(__DIR__ . '/Fixtures/Resources/FooBundle/foo.txt', $kernel
    ->locateResource('@FooBundle/Resources/foo.txt', __DIR__ . '/Fixtures/Resources'));
}