Skip to content

Commit

Permalink
Tests: Remove redundant unregister call in block bindings tear down
Browse files Browse the repository at this point in the history
Only block bindings sources registered in the tests should get unregistered.

Follow-up for [57375].
See #60282.
Props czapla.



git-svn-id: https://develop.svn.wordpress.org/trunk@57385 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
gziolo committed Jan 30, 2024
1 parent a9c985c commit cabfa6f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/phpunit/tests/block-bindings/register.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public function tear_down() {
if ( str_starts_with( $source_name, 'test/' ) ) {
unregister_block_bindings_source( $source_name );
}
unregister_block_bindings_source( $source_name );
}

parent::tear_down();
Expand Down

0 comments on commit cabfa6f

Please sign in to comment.