Skip to content

Commit

Permalink
Adds controller test for nameAndDob.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryguyk committed Oct 18, 2024
1 parent 555ff14 commit 7fc0db9
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,20 @@ public function testStartConversion() {
$this->assertArrayHasKey('start_new_conversion_header', $form);
}

/**
* Tests the nameAndDob method returns a NameAndDob form.
*/
public function testNameAndDob() {
// Create a node.
$node = $this->createNode([
'type' => 'digital_form',
'field_chapters' => [],
]);

$form = $this->controller->nameAndDob($node->id());

$this->assertArrayHasKey('#type', $form);
$this->assertArrayHasKey('name_and_dob_header', $form);
}

}

0 comments on commit 7fc0db9

Please sign in to comment.