fix: harden CHRNX editor lifecycle
This commit is contained in:
12 files changed
+512
-95
No files matched your search
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user