Skip to content

Commit

Permalink
doc(migration.md) fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lucatume committed Feb 20, 2024
1 parent 4a8301c commit 97f222d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,25 @@ back-compatibility purposes.

class MyTestUsingDeprecatedCode extends WPTestCase {
public function test_deprecatd_function() {
// add_filter( 'deprecated_function_trigger_error', '__return_false' );
// add_filter( 'deprecated_function_trigger_error', '__return_false' );
$this->setExpectedDeprecated( 'my_deprecated_function' );
my_deprecated_function();
}

public function test_deprecated_class(){
// add_filter( 'deprecated_class_trigger_error', '__return_false' );
// add_filter( 'deprecated_class_trigger_error', '__return_false' );
$this->setExpectedDeprecated( 'MyDeprecatedClass' );
new MyDeprecatedClass();
}

public function test_deprecated_file(){
// add_filter( 'deprecated_file_trigger_error', '__return_false' );
// add_filter( 'deprecated_file_trigger_error', '__return_false' );
$this->setExpectedDeprecated( '/path/to/my_deprecated_file.php' );
require_once 'my_deprecated_file.php';
}

public function test_deprecated_hook(){
// add_filter( 'deprecated_hook_trigger_error', '__return_false' );
// add_filter( 'deprecated_hook_trigger_error', '__return_false' );
$this->setExpectedDeprecated( 'my_deprecated_hook' );
do_action( 'my_deprecated_hook' );
}
Expand Down

0 comments on commit 97f222d

Please sign in to comment.