commit 61b314bd2157b1aec911fd76bca15b56017d7f32 Author: Lee Rowlands Date: Thu Jan 23 06:18:36 2014 +1000 Patch 46 diff --git a/core/modules/tour/tests/Drupal/tour/Tests/Entity/TourTest.php b/core/modules/tour/tests/Drupal/tour/Tests/Entity/TourTest.php index 2d36050..f6646b2 100644 --- a/core/modules/tour/tests/Drupal/tour/Tests/Entity/TourTest.php +++ b/core/modules/tour/tests/Drupal/tour/Tests/Entity/TourTest.php @@ -64,11 +64,20 @@ public function routeProvider() { // Simple match. array( array( - array('route_name' => 'some.route') + array('route_name' => 'some.route'), ), 'some.route', array(), - TRUE + TRUE, + ), + // Simple non-match. + array( + array( + array('route_name' => 'another.route'), + ), + 'some.route', + array(), + FALSE, ), // Empty params. array( @@ -80,7 +89,7 @@ public function routeProvider() { ), 'some.route', array(), - FALSE + FALSE, ), // Match on params. array( @@ -92,7 +101,7 @@ public function routeProvider() { ), 'some.route', array('foo' => 'bar'), - TRUE + TRUE, ), // Non-matching params. array( @@ -104,7 +113,7 @@ public function routeProvider() { ), 'some.route', array('bar' => 'foo'), - FALSE + FALSE, ), // One matching, one not. array( @@ -120,7 +129,7 @@ public function routeProvider() { ), 'some.route', array('bar' => 'foo'), - TRUE + TRUE, ), // One matching, one not. array( @@ -136,7 +145,7 @@ public function routeProvider() { ), 'some.route', array('foo' => 'baz'), - TRUE + TRUE, ), ); }