Skip to content

Commit

Permalink
Restore 100% test coverage of NF.
Browse files Browse the repository at this point in the history
  • Loading branch information
kagg-design committed Aug 24, 2024
1 parent b2e4d73 commit d85fcee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .tests/php/integration/NF/NFTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function test_nf_admin_enqueue_scripts(): void {
JSON;

$form_id = 1;
$form_data_obj = json_decode( $form_data, false );
$form_data_arr = json_decode( $form_data, true );
$expected = json_decode( $form_data, true );

$args = [
Expand Down Expand Up @@ -211,7 +211,7 @@ public function test_nf_admin_enqueue_scripts(): void {
wp_localize_script(
'nf-builder',
'nfDashInlineVars',
$form_data_obj
$form_data_arr
);

$this->set_protected_property( $subject, 'form_id', $form_id );
Expand Down

0 comments on commit d85fcee

Please sign in to comment.