public function KernelTest::testLocateResourceThrowsExceptionWhenResourceDoesNotExist

@expectedException \InvalidArgumentException

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/KernelTest.php, line 441

Class

KernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

public function testLocateResourceThrowsExceptionWhenResourceDoesNotExist() {
  $kernel = $this
    ->getKernel();
  $kernel
    ->expects($this
    ->once())
    ->method('getBundle')
    ->will($this
    ->returnValue(array(
    $this
      ->getBundle(__DIR__ . '/Fixtures/Bundle1Bundle'),
  )));
  $kernel
    ->locateResource('@Bundle1Bundle/config/routing.xml');
}