Tests: Remove redundant unregister call in block bindings tear down

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
This commit is contained in:
Greg Ziółkowski 2024-01-30 12:55:53 +00:00
parent a9c985cde4
commit cabfa6f52c

View File

@ -26,7 +26,6 @@ class Tests_Block_Bindings_Register extends WP_UnitTestCase {
if ( str_starts_with( $source_name, 'test/' ) ) {
unregister_block_bindings_source( $source_name );
}
unregister_block_bindings_source( $source_name );
}
parent::tear_down();