You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->assertStringContainsString( 'test-module-js-module-translations', $script_text, 'Translation inline script should be printed with the expected ID.' );
2747
+
$this->assertStringContainsString( 'wp-script-module-translation-data-test-module', $script_text, 'Translation inline script should be printed with the expected ID.' );
2748
2748
$this->assertStringContainsString( 'wp.i18n.setLocaleData', $script_text, 'Output should call wp.i18n.setLocaleData().' );
2749
2749
$this->assertStringContainsString( 'Hola', $script_text, 'Output should contain the translated string.' );
2750
2750
}
@@ -2811,7 +2811,7 @@ static function ( $relative, $src, $is_module ) use ( &$filtered ) {
$this->assertStringContainsString( 'dep-module-js-module-translations', $script_text, 'Dependency module translations should be printed.' );
2814
+
$this->assertStringContainsString( 'wp-script-module-translation-data-dep-module', $script_text, 'Dependency module translations should be printed.' );
2815
2815
$this->assertStringContainsString( 'Mundo', $script_text, 'Output should contain the dependency translation.' );
0 commit comments