From 77df4c7c200024dc6ee3d128ea3e193a340ed75c Mon Sep 17 00:00:00 2001 From: Perside Rosalie Date: Thu, 27 Nov 2025 10:59:03 +0100 Subject: [PATCH] Update test to pass expected parameter --- tests/Routes/Backend/WikiReadOnlyControllerTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Routes/Backend/WikiReadOnlyControllerTest.php b/tests/Routes/Backend/WikiReadOnlyControllerTest.php index 2f531dd0..a7e0ab76 100644 --- a/tests/Routes/Backend/WikiReadOnlyControllerTest.php +++ b/tests/Routes/Backend/WikiReadOnlyControllerTest.php @@ -15,7 +15,7 @@ class WikiReadOnlyControllerTest extends TestCase { public function testItReturns404WhenWikiNotFound() { $response = $this->putJson($this->route, [ 'domain' => 'nonexistent.wikibase.cloud', - 'readOnly' => true, + 'readOnly' => 1, ]); $response->assertStatus(404) @@ -31,7 +31,7 @@ public function testSetWikiToReadOnly() { $response = $this->putJson($this->route, [ 'domain' => 'somewiki.wikibase.cloud', - 'readOnly' => true, + 'readOnly' => 1, ]); $response->assertStatus(200) @@ -56,7 +56,7 @@ public function testDeleteSettingForReadOnlyFalse() { $this->putJson($this->route, [ 'domain' => $wiki->domain, - 'readOnly' => false, + 'readOnly' => 0, ]) ->assertStatus(200) ->assertJson(['message' => 'Read-only setting successfully removed for wiki.']);