ソースを参照

Fix tests for Dingo

shalvah 5 年 前
コミット
4ec17dc938
1 ファイル変更0 行追加16 行削除
  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();