mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-56102 enrol_lti: Removed unused lines in unit test
This commit is contained in:
parent
26162efe4a
commit
8e55ffc6c3
1 changed files with 2 additions and 4 deletions
|
@ -433,7 +433,6 @@ class enrol_lti_helper_testcase extends advanced_testcase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test set_xpath when an incorrect xpath expression is given.
|
* Test set_xpath when an incorrect xpath expression is given.
|
||||||
* @expectedException coding_exception
|
|
||||||
*/
|
*/
|
||||||
public function test_set_xpath_incorrect_xpath() {
|
public function test_set_xpath_incorrect_xpath() {
|
||||||
$parameters = [
|
$parameters = [
|
||||||
|
@ -451,10 +450,9 @@ class enrol_lti_helper_testcase extends advanced_testcase {
|
||||||
$document = new \DOMDocument();
|
$document = new \DOMDocument();
|
||||||
$document->load(realpath(__DIR__ . '/fixtures/input.xml'));
|
$document->load(realpath(__DIR__ . '/fixtures/input.xml'));
|
||||||
$xpath = new \DOMXpath($document);
|
$xpath = new \DOMXpath($document);
|
||||||
|
|
||||||
|
$this->setExpectedException("coding_exception");
|
||||||
$function->invokeArgs(null, [$xpath, $parameters]);
|
$function->invokeArgs(null, [$xpath, $parameters]);
|
||||||
$result = $document->saveXML();
|
|
||||||
$expected = file_get_contents(realpath(__DIR__ . '/fixtures/' . $expected));
|
|
||||||
$this->assertEquals($expected, $result);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue