File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class WikiReadOnlyControllerTest extends TestCase {
1515 public function testItReturns404WhenWikiNotFound () {
1616 $ response = $ this ->putJson ($ this ->route , [
1717 'domain ' => 'nonexistent.wikibase.cloud ' ,
18- 'readOnly ' => true ,
18+ 'readOnly ' => 1 ,
1919 ]);
2020
2121 $ response ->assertStatus (404 )
@@ -31,7 +31,7 @@ public function testSetWikiToReadOnly() {
3131
3232 $ response = $ this ->putJson ($ this ->route , [
3333 'domain ' => 'somewiki.wikibase.cloud ' ,
34- 'readOnly ' => true ,
34+ 'readOnly ' => 1 ,
3535 ]);
3636
3737 $ response ->assertStatus (200 )
@@ -56,7 +56,7 @@ public function testDeleteSettingForReadOnlyFalse() {
5656
5757 $ this ->putJson ($ this ->route , [
5858 'domain ' => $ wiki ->domain ,
59- 'readOnly ' => false ,
59+ 'readOnly ' => 0 ,
6060 ])
6161 ->assertStatus (200 )
6262 ->assertJson (['message ' => 'Read-only setting successfully removed for wiki. ' ]);
You can’t perform that action at this time.
0 commit comments