@@ -142,7 +142,6 @@ public static function abstractUrlProvider(): array
142
142
public function testRelativeDocUrl (
143
143
string $ currentDirectory ,
144
144
string $ destinationPath ,
145
- bool $ validDocumentEntry ,
146
145
string $ linkedDocument ,
147
146
string $ result ,
148
147
string |null $ anchor = null ,
@@ -151,7 +150,6 @@ public function testRelativeDocUrl(
151
150
self ::assertSame ($ result , $ urlGenerator ->generateOutputUrlFromDocumentPath (
152
151
$ currentDirectory ,
153
152
$ destinationPath ,
154
- $ validDocumentEntry ,
155
153
$ linkedDocument ,
156
154
'txt ' ,
157
155
$ anchor ,
@@ -165,43 +163,37 @@ public static function documentPathProvider(): array
165
163
'relative document ' => [
166
164
'currentDirectory ' => 'getting-started ' ,
167
165
'destinationPath ' => 'guide ' ,
168
- 'validDocumentEntry ' => false ,
169
166
'linkedDocument ' => 'installing ' ,
170
167
'result ' => 'guide/getting-started/installing.txt ' ,
171
168
],
172
169
'absolute document path ' => [
173
170
'currentDirectory ' => 'getting-started ' ,
174
171
'destinationPath ' => 'guide ' ,
175
- 'validDocumentEntry ' => false ,
176
172
'linkedDocument ' => '/installing ' ,
177
173
'result ' => 'guide/installing.txt ' ,
178
174
],
179
- 'relative document path with anchor ' => [
175
+ 'absolute document path with anchor ' => [
180
176
'currentDirectory ' => 'getting-started ' ,
181
177
'destinationPath ' => 'guide ' ,
182
- 'validDocumentEntry ' => true ,
183
- 'linkedDocument ' => 'getting-started/configuration ' ,
178
+ 'linkedDocument ' => '/getting-started/configuration ' ,
184
179
'result ' => 'guide/getting-started/configuration.txt#composer ' ,
185
180
'anchor ' => 'composer ' ,
186
181
],
187
182
'relative document path up in directory ' => [
188
183
'currentDirectory ' => 'getting-started ' ,
189
184
'destinationPath ' => 'guide ' ,
190
- 'validDocumentEntry ' => false ,
191
185
'linkedDocument ' => '../references/installing ' ,
192
186
'result ' => 'guide/references/installing.txt ' ,
193
187
],
194
188
'relative document path up in subdirectory ' => [
195
189
'currentDirectory ' => 'getting-started/something ' ,
196
190
'destinationPath ' => 'guide ' ,
197
- 'validDocumentEntry ' => false ,
198
191
'linkedDocument ' => '../references/installing ' ,
199
192
'result ' => 'guide/getting-started/references/installing.txt ' ,
200
193
],
201
194
'relative document path two up in directory ' => [
202
195
'currentDirectory ' => 'getting-started/something ' ,
203
196
'destinationPath ' => 'guide ' ,
204
- 'validDocumentEntry ' => false ,
205
197
'linkedDocument ' => '../../references/installing ' ,
206
198
'result ' => 'guide/references/installing.txt ' ,
207
199
],
0 commit comments