@@ -142,7 +142,6 @@ public static function abstractUrlProvider(): array
142142 public function testRelativeDocUrl (
143143 string $ currentDirectory ,
144144 string $ destinationPath ,
145- bool $ validDocumentEntry ,
146145 string $ linkedDocument ,
147146 string $ result ,
148147 string |null $ anchor = null ,
@@ -151,7 +150,6 @@ public function testRelativeDocUrl(
151150 self ::assertSame ($ result , $ urlGenerator ->generateOutputUrlFromDocumentPath (
152151 $ currentDirectory ,
153152 $ destinationPath ,
154- $ validDocumentEntry ,
155153 $ linkedDocument ,
156154 'txt ' ,
157155 $ anchor ,
@@ -165,43 +163,37 @@ public static function documentPathProvider(): array
165163 'relative document ' => [
166164 'currentDirectory ' => 'getting-started ' ,
167165 'destinationPath ' => 'guide ' ,
168- 'validDocumentEntry ' => false ,
169166 'linkedDocument ' => 'installing ' ,
170167 'result ' => 'guide/getting-started/installing.txt ' ,
171168 ],
172169 'absolute document path ' => [
173170 'currentDirectory ' => 'getting-started ' ,
174171 'destinationPath ' => 'guide ' ,
175- 'validDocumentEntry ' => false ,
176172 'linkedDocument ' => '/installing ' ,
177173 'result ' => 'guide/installing.txt ' ,
178174 ],
179- 'relative document path with anchor ' => [
175+ 'absolute document path with anchor ' => [
180176 'currentDirectory ' => 'getting-started ' ,
181177 'destinationPath ' => 'guide ' ,
182- 'validDocumentEntry ' => true ,
183- 'linkedDocument ' => 'getting-started/configuration ' ,
178+ 'linkedDocument ' => '/getting-started/configuration ' ,
184179 'result ' => 'guide/getting-started/configuration.txt#composer ' ,
185180 'anchor ' => 'composer ' ,
186181 ],
187182 'relative document path up in directory ' => [
188183 'currentDirectory ' => 'getting-started ' ,
189184 'destinationPath ' => 'guide ' ,
190- 'validDocumentEntry ' => false ,
191185 'linkedDocument ' => '../references/installing ' ,
192186 'result ' => 'guide/references/installing.txt ' ,
193187 ],
194188 'relative document path up in subdirectory ' => [
195189 'currentDirectory ' => 'getting-started/something ' ,
196190 'destinationPath ' => 'guide ' ,
197- 'validDocumentEntry ' => false ,
198191 'linkedDocument ' => '../references/installing ' ,
199192 'result ' => 'guide/getting-started/references/installing.txt ' ,
200193 ],
201194 'relative document path two up in directory ' => [
202195 'currentDirectory ' => 'getting-started/something ' ,
203196 'destinationPath ' => 'guide ' ,
204- 'validDocumentEntry ' => false ,
205197 'linkedDocument ' => '../../references/installing ' ,
206198 'result ' => 'guide/references/installing.txt ' ,
207199 ],
0 commit comments