Skip to content

Commit

Permalink
Fix phpcs error
Browse files Browse the repository at this point in the history
Change-Id: Id5813537ec8d0431a20adebc269ecbbaa6a06c63
  • Loading branch information
Ladsgroup committed Aug 19, 2023
1 parent 366bfb3 commit 397554c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion repo/tests/phpunit/includes/Api/EditEntityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ public function provideExceptionData() {
'code' => 'invalid-entity-id',
] ] ],
'non existent sitelink' => [
'p' => [ 'site' => 'dewiki','title' => 'NonExistent', 'data' => '{}' ],
'p' => [ 'site' => 'dewiki', 'title' => 'NonExistent', 'data' => '{}' ],
'e' => [ 'exception' => [
'type' => ApiUsageException::class,
'code' => 'no-such-entity-link',
Expand Down
6 changes: 3 additions & 3 deletions repo/tests/phpunit/includes/Api/GetEntitiesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,13 +394,13 @@ public static function provideExceptionData() {
'p' => [ 'titles' => 'Berlin' ],
'e' => [ 'exception' => [ 'type' => ApiUsageException::class, 'code' => 'param-missing' ] ] ],
[ //6 normalization fails with 2 titles
'p' => [ 'sites' => 'enwiki', 'titles' => 'Foo|Bar' ,'normalize' => '' ],
'p' => [ 'sites' => 'enwiki', 'titles' => 'Foo|Bar' , 'normalize' => '' ],
'e' => [ 'exception' => [ 'type' => ApiUsageException::class, 'code' => 'params-illegal' ] ] ],
[ //7 normalization fails with 2 sites
'p' => [ 'sites' => 'enwiki|dewiki', 'titles' => 'Boo' ,'normalize' => '' ],
'p' => [ 'sites' => 'enwiki|dewiki', 'titles' => 'Boo' , 'normalize' => '' ],
'e' => [ 'exception' => [ 'type' => ApiUsageException::class, 'code' => 'params-illegal' ] ] ],
[ //8 normalization fails with 2 sites and 2 titles
'p' => [ 'sites' => 'enwiki|dewiki', 'titles' => 'Foo|Bar' ,'normalize' => '' ],
'p' => [ 'sites' => 'enwiki|dewiki', 'titles' => 'Foo|Bar' , 'normalize' => '' ],
'e' => [ 'exception' => [ 'type' => ApiUsageException::class, 'code' => 'params-illegal' ] ] ],
[ //9 must request one site, one title, or an equal number of sites and titles
'p' => [ 'sites' => 'dewiki|enwiki', 'titles' => 'Oslo|Berlin|London' ],
Expand Down
2 changes: 1 addition & 1 deletion repo/tests/phpunit/includes/Api/ModifyTermTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static function provideData() {
'e' => [ 'value' => [ 'en' => 'Different Value' ] ] ],
[ //5
'p' => [ 'language' => 'sgs', 'value' => 'V?sata' ],
'e' => [ 'value' => [ 'sgs' => 'V?sata','en' => 'Different Value' ] ] ],
'e' => [ 'value' => [ 'sgs' => 'V?sata', 'en' => 'Different Value' ] ] ],
[ //6
'p' => [ 'language' => 'en', 'value' => '' ],
'e' => [ 'value' => [ 'sgs' => 'V?sata' ] ] ],
Expand Down

0 comments on commit 397554c

Please sign in to comment.