Skip to content

Commit

Permalink
Update Asset_Manager tests with new call to wp_set_script_translations.
Browse files Browse the repository at this point in the history
  • Loading branch information
petitphp authored and enricobattocchi committed Mar 15, 2024
1 parent 6f65a1c commit b9a5818
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/Unit/UI/Asset_Manager_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ public function test_register_scripts() {
\DUPLICATE_POST_CURRENT_VERSION,
true
);
Monkey\Functions\expect( '\wp_set_script_translations' )
->with(
'duplicate_post_edit_script',
'duplicate-post'
);

Monkey\Functions\expect( '\wp_register_script' )
->with(
Expand All @@ -127,6 +132,11 @@ public function test_register_scripts() {
\DUPLICATE_POST_CURRENT_VERSION,
true
);
Monkey\Functions\expect( '\wp_set_script_translations' )
->with(
'duplicate_post_strings',
'duplicate-post'
);

Monkey\Functions\expect( '\wp_register_script' )
->with(
Expand Down

0 comments on commit b9a5818

Please sign in to comment.