Skip to content

Commit

Permalink
Updated unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Whitaker committed May 8, 2019
1 parent 928f7e8 commit 35b9226
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/UfixitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@ public function testFixAltText()

ob_start();
$temp = new Ufixit($this->data);
$output = $temp->fixAltText($error_html, $new_content);

$output = $temp->fixAltText($error_html, $new_content, false);
$this->assertEquals($expected, $output);
$expected = '<img src="https://webcourses.ucf.edu/courses/1234567/image.jpg" alt="" data-decorative="true">';
$output = $temp->fixAltText($error_html, "", true);
$this->assertEquals($expected, $output);


$this->checkOutputBuffer();
}

Expand Down

0 comments on commit 35b9226

Please sign in to comment.