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 committed Feb 18, 2022
1 parent 0cf6f89 commit 9b6ce90
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/ui/asset-manager-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,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 @@ -119,6 +124,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 9b6ce90

Please sign in to comment.