File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1562,7 +1562,7 @@ private function strip_html_head_body_tags(string $markup)
15621562 * @return array<string, string|integer>
15631563 */
15641564 private function build_pagination_params (
1565- array $ params ,
1565+ array $ params = [] ,
15661566 string $ after_cursor = '' ,
15671567 string $ before_cursor = '' ,
15681568 int $ per_page = 100
Original file line number Diff line number Diff line change @@ -639,20 +639,22 @@ public function testGetFormSubscriptionsWithInvalidFormID()
639639 */
640640 public function testGetSequences ()
641641 {
642- $ this ->markTestIncomplete ();
643-
644642 $ result = $ this ->api ->get_sequences ();
645- $ this ->assertInstanceOf ('stdClass ' , $ result );
643+
644+ // Assert sequences and pagination exist.
645+ $ this ->assertDataExists ($ result , 'sequences ' );
646+ $ this ->assertPaginationExists ($ result );
646647
647648 // Check first sequence in resultset has expected data.
648- $ sequence = get_object_vars ($ result ->courses [0 ]);
649+ $ sequence = get_object_vars ($ result ->sequences [0 ]);
649650 $ this ->assertArrayHasKey ('id ' , $ sequence );
650651 $ this ->assertArrayHasKey ('name ' , $ sequence );
651652 $ this ->assertArrayHasKey ('hold ' , $ sequence );
652653 $ this ->assertArrayHasKey ('repeat ' , $ sequence );
653654 $ this ->assertArrayHasKey ('created_at ' , $ sequence );
654655 }
655656
657+
656658 /**
657659 * Test that add_subscriber_to_sequence() returns the expected data.
658660 *
You can’t perform that action at this time.
0 commit comments