@@ 66-73 (lines=8) @@ | ||
63 | $this->assertEquals($nodeTranslation, $result['_nodeTranslation']); |
|
64 | } |
|
65 | ||
66 | public function testMatchWithoutNodeTranslation() |
|
67 | { |
|
68 | $this->expectException(ResourceNotFoundException::class); |
|
69 | $request = $this->getRequest(); |
|
70 | $container = $this->getContainer($request); |
|
71 | $object = new DomainBasedLocaleRouter($container); |
|
72 | $object->match('/en/some-uri'); |
|
73 | } |
|
74 | ||
75 | /** |
|
76 | * @throws \ReflectionException |
@@ 59-66 (lines=8) @@ | ||
56 | $this->assertEquals($nodeTranslation, $result['_nodeTranslation']); |
|
57 | } |
|
58 | ||
59 | public function testMatchWithoutNodeTranslation() |
|
60 | { |
|
61 | $this->expectException(ResourceNotFoundException::class); |
|
62 | $request = $this->getRequest(); |
|
63 | $container = $this->getContainer($request); |
|
64 | $object = new SlugRouter($container); |
|
65 | $object->match('/en/some-uri'); |
|
66 | } |
|
67 | ||
68 | private function getContainer($request, $multiLanguage = false, $nodeTranslation = null) |
|
69 | { |