1111
1212class Plugin_Uninstall_Constant_Check_Tests extends WP_UnitTestCase {
1313
14- public function test_run_with_plugin_uninstall_errors ( ) {
15- $ test_file = 'test-plugin-uninstall-constant-errors/load.php ' ;
14+ public function test_run_with_plugin_uninstall_errors () {
15+ $ test_file = 'test-plugin-uninstall-constant-errors/load.php ' ;
1616 $ check_context = new Check_Context ( UNIT_TESTS_PLUGIN_DIR . $ test_file );
1717 $ check_result = new Check_Result ( $ check_context );
1818
@@ -25,20 +25,19 @@ public function test_run_with_plugin_uninstall_errors( ) {
2525 $ this ->assertArrayHasKey ( 'uninstall.php ' , $ errors );
2626 $ this ->assertSame ( 1 , $ check_result ->get_error_count () );
2727
28- $ this ->assertTrue ( isset ( $ errors [ 'uninstall.php ' ][0 ][0 ][0 ] ) );
29- $ this ->assertSame ( 'uninstall_no_constant_check ' , $ errors [ 'uninstall.php ' ][0 ][0 ][0 ]['code ' ] );
30-
28+ $ this ->assertTrue ( isset ( $ errors ['uninstall.php ' ][0 ][0 ][0 ] ) );
29+ $ this ->assertSame ( 'uninstall_no_constant_check ' , $ errors ['uninstall.php ' ][0 ][0 ][0 ]['code ' ] );
3130 }
3231
3332 public function test_run_without_any_errors () {
34- $ test_file = 'test-plugin-uninstall-constant-without-errors/load.php ' ;
35- $ check_context = new Check_Context ( UNIT_TESTS_PLUGIN_DIR . $ test_file );
33+ $ test_file = 'test-plugin-uninstall-constant-without-errors/load.php ' ;
34+ $ check_context = new Check_Context ( UNIT_TESTS_PLUGIN_DIR . $ test_file );
3635 $ check_result = new Check_Result ( $ check_context );
3736
3837 $ check = new Plugin_Uninstall_Constant_Check ();
3938 $ check ->run ( $ check_result );
4039
41- $ errors = $ check_result ->get_errors ();
40+ $ errors = $ check_result ->get_errors ();
4241
4342 $ this ->assertEmpty ( $ errors );
4443 $ this ->assertEquals ( 0 , $ check_result ->get_error_count () );
0 commit comments