Skip to content
Snippets Groups Projects
Commit 80bddb5a authored by Erick Hitter's avatar Erick Hitter
Browse files

Fix test

parent 11b10e1c
No related branches found
No related tags found
1 merge request!14Add native block-editor support
...@@ -105,13 +105,16 @@ class TestClassExternalPermalinksReduxBlockEditor extends WP_UnitTestCase { ...@@ -105,13 +105,16 @@ class TestClassExternalPermalinksReduxBlockEditor extends WP_UnitTestCase {
* @covers ::enqueue() * @covers ::enqueue()
*/ */
public function test_enqueue() { public function test_enqueue() {
$asset_handle = $asset_handle = 'external-permalinks-redux'; $asset_handle = 'external-permalinks-redux';
$this->assertFalse( $this->assertFalse(
wp_script_is( $asset_handle, 'enqueued' ), wp_script_is( $asset_handle, 'enqueued' ),
'Failed to assert that script is not enqueued.' 'Failed to assert that script is not enqueued.'
); );
remove_all_actions( 'admin_init' );
do_action( 'admin_init' );
external_permalinks_redux::get_instance()->action_admin_init();
External_Permalinks_Redux_Block_Editor::get_instance()->enqueue(); External_Permalinks_Redux_Block_Editor::get_instance()->enqueue();
$this->assertTrue( $this->assertTrue(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment