| @@ 160-187 (lines=28) @@ | ||
| 157 | $this->assertSame('http', $result->getRequest()->scheme); |
|
| 158 | } |
|
| 159 | ||
| 160 | protected function createRouter(): Router |
|
| 161 | { |
|
| 162 | return new Router( |
|
| 163 | $this->matcherBuilder, |
|
| 164 | $this->createMock(LoggerInterface::class), |
|
| 165 | 'default_sa', |
|
| 166 | [ |
|
| 167 | 'Map\\Host' => [ |
|
| 168 | 'first_sa' => 'first_sa', |
|
| 169 | 'first_siteaccess' => 'first_sa', |
|
| 170 | 'third_siteaccess' => 'third_sa', |
|
| 171 | ], |
|
| 172 | 'Map\\Port' => [ |
|
| 173 | 80 => 'fifth_sa', |
|
| 174 | 81 => 'third_sa', |
|
| 175 | 82 => 'fourth_sa', |
|
| 176 | 83 => 'first_sa', |
|
| 177 | 85 => 'first_sa', |
|
| 178 | 443 => 'fourth_sa', |
|
| 179 | ], |
|
| 180 | 'Map\\URI' => [ |
|
| 181 | 'first_sa' => 'first_sa', |
|
| 182 | 'second_sa' => 'second_sa', |
|
| 183 | ], |
|
| 184 | ], |
|
| 185 | $this->siteAccessProvider |
|
| 186 | ); |
|
| 187 | } |
|
| 188 | ||
| 189 | /** |
|
| 190 | * @return \eZ\Publish\Core\MVC\Symfony\SiteAccess\Tests\SiteAccessSetting[] |
|
| @@ 83-110 (lines=28) @@ | ||
| 80 | ]; |
|
| 81 | } |
|
| 82 | ||
| 83 | protected function createRouter(): Router |
|
| 84 | { |
|
| 85 | return new Router( |
|
| 86 | $this->matcherBuilder, |
|
| 87 | $this->createMock(LoggerInterface::class), |
|
| 88 | 'default_sa', |
|
| 89 | [ |
|
| 90 | 'Map\\Port' => [ |
|
| 91 | 80 => 'fifth_sa', |
|
| 92 | 81 => 'third_sa', |
|
| 93 | 82 => 'fourth_sa', |
|
| 94 | 83 => 'first_sa', |
|
| 95 | 85 => 'first_sa', |
|
| 96 | 443 => 'fourth_sa', |
|
| 97 | ], |
|
| 98 | 'Map\\Host' => [ |
|
| 99 | 'first_sa' => 'first_sa', |
|
| 100 | 'first_siteaccess' => 'first_sa', |
|
| 101 | 'third_siteaccess' => 'third_sa', |
|
| 102 | ], |
|
| 103 | 'Map\\URI' => [ |
|
| 104 | 'first_sa' => 'first_sa', |
|
| 105 | 'second_sa' => 'second_sa', |
|
| 106 | ], |
|
| 107 | ], |
|
| 108 | $this->siteAccessProvider |
|
| 109 | ); |
|
| 110 | } |
|
| 111 | ||
| 112 | /** |
|
| 113 | * @return \eZ\Publish\Core\MVC\Symfony\SiteAccess\Tests\SiteAccessSetting[] |
|
| @@ 83-110 (lines=28) @@ | ||
| 80 | $this->assertSame('port', $matcher->getName()); |
|
| 81 | } |
|
| 82 | ||
| 83 | protected function createRouter(): Router |
|
| 84 | { |
|
| 85 | return new Router( |
|
| 86 | $this->matcherBuilder, |
|
| 87 | $this->createMock(LoggerInterface::class), |
|
| 88 | 'default_sa', |
|
| 89 | [ |
|
| 90 | 'Map\\URI' => [ |
|
| 91 | 'first_sa' => 'first_sa', |
|
| 92 | 'second_sa' => 'second_sa', |
|
| 93 | ], |
|
| 94 | 'Map\\Host' => [ |
|
| 95 | 'first_sa' => 'first_sa', |
|
| 96 | 'first_siteaccess' => 'first_sa', |
|
| 97 | 'third_siteaccess' => 'third_sa', |
|
| 98 | ], |
|
| 99 | 'Map\\Port' => [ |
|
| 100 | 80 => 'fifth_sa', |
|
| 101 | 81 => 'third_sa', |
|
| 102 | 82 => 'fourth_sa', |
|
| 103 | 83 => 'first_sa', |
|
| 104 | 85 => 'first_sa', |
|
| 105 | 443 => 'fourth_sa', |
|
| 106 | ], |
|
| 107 | ], |
|
| 108 | $this->siteAccessProvider |
|
| 109 | ); |
|
| 110 | } |
|
| 111 | ||
| 112 | /** |
|
| 113 | * @return \eZ\Publish\Core\MVC\Symfony\SiteAccess\Tests\SiteAccessSetting[] |
|