Skip to content

Commit 29d33fd

Browse files
author
Paul Bearne
committed
Reorder and update test data array in data_iis7_rewrite_rule_exists() for consistency
1 parent bacdfcf commit 29d33fd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/phpunit/tests/admin/includes/misc/iis7RewriteRuleExists.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ public function test_iis7_rewrite_rule_exists( $expected, $content ) {
6161
*/
6262
public function data_iis7_rewrite_rule_exists(): array {
6363
return array(
64+
'Rule with name starting with "wordpress" exists' => array(
65+
'expected' => true,
66+
'content' => '<configuration><system.webServer><rewrite><rules><rule name="wordpress-rules" /></rules></rewrite></system.webServer></configuration>',
67+
),
6468
'Rule with name "wordpress" exists' => array(
6569
'expected' => true,
6670
'content' => '<configuration><system.webServer><rewrite><rules><rule name="wordpress" /></rules></rewrite></system.webServer></configuration>',
@@ -69,10 +73,6 @@ public function data_iis7_rewrite_rule_exists(): array {
6973
'expected' => true,
7074
'content' => '<configuration><system.webServer><rewrite><rules><rule name="WordPress" /></rules></rewrite></system.webServer></configuration>',
7175
),
72-
'Rule with name starting with "wordpress" exists' => array(
73-
'expected' => true,
74-
'content' => '<configuration><system.webServer><rewrite><rules><rule name="wordpress-rules" /></rules></rewrite></system.webServer></configuration>',
75-
),
7676
'Rule does not exist' => array(
7777
'expected' => false,
7878
'content' => '<configuration><system.webServer><rewrite><rules><rule name="other-rule" /></rules></rewrite></system.webServer></configuration>',

0 commit comments

Comments
 (0)