From c723ec824f5e1130e0646f79e1c87ae9789d85ff Mon Sep 17 00:00:00 2001 From: Mukesh Panchal Date: Mon, 25 Sep 2023 15:30:11 +0530 Subject: [PATCH] Remove duplicate assertions --- tests/phpunit/Checker/Checks/Plugin_Readme_Check_Tests.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/phpunit/Checker/Checks/Plugin_Readme_Check_Tests.php b/tests/phpunit/Checker/Checks/Plugin_Readme_Check_Tests.php index 03473a0e6..3b1ca8c58 100644 --- a/tests/phpunit/Checker/Checks/Plugin_Readme_Check_Tests.php +++ b/tests/phpunit/Checker/Checks/Plugin_Readme_Check_Tests.php @@ -71,8 +71,6 @@ public function test_run_with_errors_stable_tag() { $this->assertEquals( 'trunk_stable_tag', $errors['readme.txt'][0][0][0]['code'] ); // Check for stable tag mismatch file error. - $this->assertArrayHasKey( 0, $errors['readme.txt'] ); - $this->assertArrayHasKey( 0, $errors['readme.txt'][0] ); $this->assertArrayHasKey( 'code', $errors['readme.txt'][0][0][1] ); $this->assertEquals( 'stable_tag_mismatch', $errors['readme.txt'][0][0][1]['code'] ); } @@ -154,8 +152,6 @@ public function test_run_md_with_errors() { $this->assertEquals( 'default_readme_text', $warnings['readme.md'][0][0][0]['code'] ); // Check for invalid license warning. - $this->assertArrayHasKey( 0, $warnings['readme.md'] ); - $this->assertArrayHasKey( 0, $warnings['readme.md'][0] ); $this->assertArrayHasKey( 'code', $warnings['readme.md'][0][0][1] ); $this->assertEquals( 'invalid_license', $warnings['readme.md'][0][0][1]['code'] ); @@ -166,8 +162,6 @@ public function test_run_md_with_errors() { $this->assertEquals( 'trunk_stable_tag', $errors['readme.md'][0][0][0]['code'] ); // Check for stable tag mismatch file error. - $this->assertArrayHasKey( 0, $errors['readme.md'] ); - $this->assertArrayHasKey( 0, $errors['readme.md'][0] ); $this->assertArrayHasKey( 'code', $errors['readme.md'][0][0][1] ); $this->assertEquals( 'stable_tag_mismatch', $errors['readme.md'][0][0][1]['code'] ); }