From b86bf273b77ba28bcb563d9160c396c52dd3deea Mon Sep 17 00:00:00 2001 From: Md Yousuf Ali <39758891+iamyusuf@users.noreply.github.com> Date: Mon, 11 Nov 2024 17:19:04 -0300 Subject: [PATCH] feat: use assertTrue and assertFalse method, instead of using assertEquals (#53453) Co-authored-by: Md Yousuf Ali --- tests/Support/ValidatedInputTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Support/ValidatedInputTest.php b/tests/Support/ValidatedInputTest.php index 6798bd69c914..7b85c1ae30c9 100644 --- a/tests/Support/ValidatedInputTest.php +++ b/tests/Support/ValidatedInputTest.php @@ -39,14 +39,14 @@ public function test_input_existence() { $inputA = new ValidatedInput(['name' => 'Taylor']); - $this->assertEquals(true, $inputA->has('name')); - $this->assertEquals(true, $inputA->missing('votes')); - $this->assertEquals(true, $inputA->missing(['votes'])); - $this->assertEquals(false, $inputA->missing('name')); + $this->assertTrue($inputA->has('name')); + $this->assertTrue($inputA->missing('votes')); + $this->assertTrue($inputA->missing(['votes'])); + $this->assertFalse($inputA->missing('name')); $inputB = new ValidatedInput(['name' => 'Taylor', 'votes' => 100]); - $this->assertEquals(true, $inputB->has(['name', 'votes'])); + $this->assertTrue($inputB->has(['name', 'votes'])); } public function test_exists_method()