Skip to content
Snippets Groups Projects
Commit 9f1d3c4c authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2548061 by hussainweb, alexpott, klausi, Crell, dawehner, Berdir: Fix...

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

(cherry picked from commit 97d9a7b2)
parent ee8f13d3
No related branches found
No related tags found
No related merge requests found
<?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\Tests\Core\Routing\RoutingFixtures;
use Drupal\Tests\UnitTestCase;
use Symfony\Component\HttpFoundation\Request;
......@@ -88,7 +87,7 @@ public function testAcceptFiltering($accept_header, $format, $included_route, $e
* Confirms that the AcceptHeaderMatcher throws an exception for no-route.
*
* @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() {
// Remove the sample routes that would match any method.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment