Skip to content

Commit

Permalink
fixes to unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusgreen committed Nov 14, 2023
1 parent 3e68309 commit 70acf33
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/driprelease_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,11 @@ public function test_manage_selections() {
*/
public function test_add_header() {
$this->resetAfterTest();
$header = add_header([]);
$row = ['sessioncounter' => 1];
$header = add_header($row);
$this->assertEquals(true, $header['isheader']);
$this->assertEquals('Session', $header['name']);
$this->assertEquals(-1, $header['cm']->id);
$this->assertEquals(1, $header['cm']->id);
}

/**
Expand Down

0 comments on commit 70acf33

Please sign in to comment.