Skip to content

Commit

Permalink
MDL-56102 enrol_lti: Removed unused lines in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
John Okely committed Sep 28, 2016
1 parent 26162ef commit 8e55ffc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions enrol/lti/tests/helper_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,6 @@ public function test_set_xpath($parameters, $expected) {

/**
* Test set_xpath when an incorrect xpath expression is given.
* @expectedException coding_exception
*/
public function test_set_xpath_incorrect_xpath() {
$parameters = [
Expand All @@ -451,10 +450,9 @@ public function test_set_xpath_incorrect_xpath() {
$document = new \DOMDocument();
$document->load(realpath(__DIR__ . '/fixtures/input.xml'));
$xpath = new \DOMXpath($document);

$this->setExpectedException("coding_exception");
$function->invokeArgs(null, [$xpath, $parameters]);
$result = $document->saveXML();
$expected = file_get_contents(realpath(__DIR__ . '/fixtures/' . $expected));
$this->assertEquals($expected, $result);
}

/**
Expand Down

0 comments on commit 8e55ffc

Please sign in to comment.