MDL-54561 phpunit: only search with first 3 chars

Windows uses only the first three characters of prefix in
tempnam(), so only use first 3 chars to find if error
is logged
This commit is contained in:
Rajesh Taneja
2016-05-13 13:33:52 +08:00
parent e4b5a062d8
commit 790bf3ace0
@@ -79,7 +79,7 @@ class mod_lti_service_exception_handler_testcase extends advanced_testcase {
ob_end_clean();
$this->assertTrue(is_dir($CFG->dataroot.'/temp/mod_lti'));
$files = glob($CFG->dataroot.'/temp/mod_lti/mod_lti_response*');
$files = glob($CFG->dataroot.'/temp/mod_lti/mod*');
$this->assertEquals(1, count($files));
}
}