Skip to content

Commit

Permalink
feat: use assertTrue and assertFalse method, instead of using assertE…
Browse files Browse the repository at this point in the history
…quals (#53453)

Co-authored-by: Md Yousuf Ali <yousuf3usb@gmail.com>
  • Loading branch information
iamyusuf and Md Yousuf Ali authored Nov 11, 2024
1 parent 378bd56 commit b86bf27
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/Support/ValidatedInputTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b86bf27

Please # to comment.