diff --git a/packages/e2e-tests/plugins/interactive-blocks/tovdom/render.php b/packages/e2e-tests/plugins/interactive-blocks/tovdom/render.php
index 309b42a582935..07a50745c7242 100644
--- a/packages/e2e-tests/plugins/interactive-blocks/tovdom/render.php
+++ b/packages/e2e-tests/plugins/interactive-blocks/tovdom/render.php
@@ -9,7 +9,7 @@
$src_proc_ins = $plugin_url . 'tovdom/processing-instructions.js';
$src_cdata = $plugin_url . 'tovdom/cdata.js';
-gutenberg_enqueue_module( 'tovdom-view' );
+wp_enqueue_script_module( 'tovdom-view' );
?>
diff --git a/packages/e2e-tests/plugins/interactive-blocks/with-scope/render.php b/packages/e2e-tests/plugins/interactive-blocks/with-scope/render.php
index e1a844e33246a..699c29aabe28c 100644
--- a/packages/e2e-tests/plugins/interactive-blocks/with-scope/render.php
+++ b/packages/e2e-tests/plugins/interactive-blocks/with-scope/render.php
@@ -5,7 +5,7 @@
* @package gutenberg-test-interactive-blocks
*/
-gutenberg_enqueue_module( 'with-scope-view' );
+wp_enqueue_script_module( 'with-scope-view' );
?>
diff --git a/phpunit/experimental/modules/class-gutenberg-modules-test.php b/phpunit/experimental/modules/class-gutenberg-modules-test.php
deleted file mode 100644
index a7f6c3b491a53..0000000000000
--- a/phpunit/experimental/modules/class-gutenberg-modules-test.php
+++ /dev/null
@@ -1,285 +0,0 @@
-registered = new ReflectionProperty( 'Gutenberg_Modules', 'registered' );
- $this->registered->setAccessible( true );
- $this->old_registered = $this->registered->getValue();
- $this->registered->setValue( array() );
- }
-
- public function tear_down() {
- $this->registered->setValue( $this->old_registered );
- parent::tear_down();
- }
-
- public function get_enqueued_modules() {
- $modules_markup = get_echo( array( 'Gutenberg_Modules', 'print_enqueued_modules' ) );
- $p = new WP_HTML_Tag_Processor( $modules_markup );
- $enqueued_modules = array();
-
- while ( $p->next_tag(
- array(
- 'tag' => 'SCRIPT',
- 'type' => 'module',
- )
- ) ) {
- $enqueued_modules[ $p->get_attribute( 'id' ) ] = $p->get_attribute( 'src' );
- }
-
- return $enqueued_modules;
- }
-
- public function get_import_map() {
- $import_map_markup = get_echo( array( 'Gutenberg_Modules', 'print_import_map' ) );
- preg_match( '/