fix: harden CHRNX editor lifecycle

This commit is contained in:
chrnx committed 2026-08-11 15:06:50 -05:00
1 parent a5b94123a8
commit 835fb74ebf
12 files changed
+512 -95

No files matched your search

+2 -1
View File
@@ -84,7 +84,7 @@ class EditorAssetsTest extends WP_UnitTestCase {
);
$this->assertSame( array( 'chrnx-editor-taxonomies', 'chrnx-editor-podcast' ), $handles );
$expected_dependencies = array( 'wp-components', 'wp-core-data', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-plugins' );
$expected_dependencies = array( 'wp-components', 'wp-core-data', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins' );
foreach (
array(
@@ -96,6 +96,7 @@ class EditorAssetsTest extends WP_UnitTestCase {
$this->assertSame( get_theme_file_uri( $asset ), $scripts->registered[ $handle ]->src );
$this->assertSame( $expected_dependencies, $scripts->registered[ $handle ]->deps );
$this->assertSame( CHRNX_VERSION, $scripts->registered[ $handle ]->ver );
$this->assertSame( 'chrnx', $scripts->registered[ $handle ]->textdomain );
}
}