Browse Source

Fix tests for Dingo

shalvah 5 năm trước cách đây
mục cha
commit
4ec17dc938
1 tập tin đã thay đổi với 0 bổ sung16 xóa
  1. 0 16
      tests/Unit/RouteMatcherDingoTest.php

+ 0 - 16
tests/Unit/RouteMatcherDingoTest.php

@@ -107,22 +107,6 @@ class RouteMatcherDingoTest extends TestCase
         $this->assertCount(18, $routes);
     }
 
-    public function testWillIncludeRouteIfListedExplicitlyForLaravelRouter()
-    {
-        $this->registerLaravelRoutes();
-        $mustInclude = 'domain1-1';
-        $routeRules[0]['include'] = [$mustInclude];
-
-        $routeRules[0]['match']['domains'] = ['domain1.*'];
-        $routeRules[0]['match']['prefixes'] = ['prefix1/*'];
-        $matcher = new RouteMatcher();
-        $routes = $matcher->getRoutes($routeRules);
-        $oddRuleOut = collect($routes)->filter(function ($route) use ($mustInclude) {
-            return $route['route']->getName() === $mustInclude;
-        });
-        $this->assertCount(1, $oddRuleOut);
-    }
-
     public function testWillIncludeRouteIfListedExplicitlyForDingoRouter()
     {
         $this->registerDingoRoutes();