Skip to content

Commit f2cca4f

Browse files
authored
Update license check tests (#916)
1 parent 00a6b15 commit f2cca4f

3 files changed

Lines changed: 0 additions & 41 deletions

File tree

tests/phpunit/testdata/plugins/test-plugin-plugin-readme-mpl2-license-without-errors/load.php

Lines changed: 0 additions & 16 deletions
This file was deleted.

tests/phpunit/testdata/plugins/test-plugin-plugin-readme-mpl2-license-without-errors/readme.txt

Lines changed: 0 additions & 13 deletions
This file was deleted.

tests/phpunit/tests/Checker/Checks/Plugin_Readme_Check_Tests.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -202,18 +202,6 @@ public function test_run_with_errors_no_license() {
202202
$this->assertCount( 1, wp_list_filter( $errors['readme.txt'][0][0], array( 'code' => 'no_license' ) ) );
203203
}
204204

205-
public function test_run_without_error_mpl2_license() {
206-
$readme_check = new Plugin_Readme_Check();
207-
$check_context = new Check_Context( UNIT_TESTS_PLUGIN_DIR . 'test-plugin-plugin-readme-mpl2-license-without-errors/load.php' );
208-
$check_result = new Check_Result( $check_context );
209-
210-
$readme_check->run( $check_result );
211-
212-
$errors = $check_result->get_errors();
213-
214-
$this->assertEmpty( $errors );
215-
}
216-
217205
public function test_run_with_errors_tested_upto() {
218206
$readme_check = new Plugin_Readme_Check();
219207
$check_context = new Check_Context( UNIT_TESTS_PLUGIN_DIR . 'test-plugin-plugin-readme-errors-tested-upto/load.php' );

0 commit comments

Comments
 (0)