public function KernelTest::testLocateResourceReturnsTheDirOneForResourcesAndBundleOnes in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/KernelTest.php \Symfony\Component\HttpKernel\Tests\KernelTest::testLocateResourceReturnsTheDirOneForResourcesAndBundleOnes()
File
- vendor/
symfony/ http-kernel/ Tests/ KernelTest.php, line 522
Class
Namespace
Symfony\Component\HttpKernel\TestsCode
public function testLocateResourceReturnsTheDirOneForResourcesAndBundleOnes() {
$kernel = $this
->getKernel(array(
'getBundle',
));
$kernel
->expects($this
->once())
->method('getBundle')
->will($this
->returnValue(array(
$this
->getBundle(__DIR__ . '/Fixtures/Bundle1Bundle', null, null, 'Bundle1Bundle'),
)));
$this
->assertEquals(array(
__DIR__ . '/Fixtures/Resources/Bundle1Bundle/foo.txt',
__DIR__ . '/Fixtures/Bundle1Bundle/Resources/foo.txt',
), $kernel
->locateResource('@Bundle1Bundle/Resources/foo.txt', __DIR__ . '/Fixtures/Resources', false));
}