Issue #2548061 by hussainweb, alexpott, klausi, Crell, dawehner, Berdir: Fix Drupal\Tests\accept_header_routing_teste\Unit\Routing\AcceptHeaderMatcherTest::testNoRouteFound

8.4.x
Alex Pott 2017-03-10 15:05:26 +00:00
parent e439d239e8
commit 97d9a7b2ae
1 changed files with 2 additions and 3 deletions

View File

@ -1,9 +1,8 @@
<?php <?php
namespace Drupal\Tests\accept_header_routing_teste\Unit\Routing; namespace Drupal\Tests\Core\Routing;
use Drupal\accept_header_routing_test\Routing\AcceptHeaderMatcher; use Drupal\accept_header_routing_test\Routing\AcceptHeaderMatcher;
use Drupal\Tests\Core\Routing\RoutingFixtures;
use Drupal\Tests\UnitTestCase; use Drupal\Tests\UnitTestCase;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
@ -88,7 +87,7 @@ class AcceptHeaderMatcherTest extends UnitTestCase {
* Confirms that the AcceptHeaderMatcher throws an exception for no-route. * Confirms that the AcceptHeaderMatcher throws an exception for no-route.
* *
* @expectedException \Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException * @expectedException \Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException
* @expectedExceptionMessage No route found for the specified formats application/json text/xml. * @expectedExceptionMessage No route found for the specified formats application/json text/xml
*/ */
public function testNoRouteFound() { public function testNoRouteFound() {
// Remove the sample routes that would match any method. // Remove the sample routes that would match any method.