Skip to content

Commit b86bf27

Browse files
iamyusufMd Yousuf Ali
and
Md Yousuf Ali
authored
feat: use assertTrue and assertFalse method, instead of using assertEquals (#53453)
Co-authored-by: Md Yousuf Ali <[email protected]>
1 parent 378bd56 commit b86bf27

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/Support/ValidatedInputTest.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ public function test_input_existence()
3939
{
4040
$inputA = new ValidatedInput(['name' => 'Taylor']);
4141

42-
$this->assertEquals(true, $inputA->has('name'));
43-
$this->assertEquals(true, $inputA->missing('votes'));
44-
$this->assertEquals(true, $inputA->missing(['votes']));
45-
$this->assertEquals(false, $inputA->missing('name'));
42+
$this->assertTrue($inputA->has('name'));
43+
$this->assertTrue($inputA->missing('votes'));
44+
$this->assertTrue($inputA->missing(['votes']));
45+
$this->assertFalse($inputA->missing('name'));
4646

4747
$inputB = new ValidatedInput(['name' => 'Taylor', 'votes' => 100]);
4848

49-
$this->assertEquals(true, $inputB->has(['name', 'votes']));
49+
$this->assertTrue($inputB->has(['name', 'votes']));
5050
}
5151

5252
public function test_exists_method()

0 commit comments

Comments
 (0)