Skip to content
Snippets Groups Projects
Commit 7193b9c4 authored by Alex Arnaud's avatar Alex Arnaud
Browse files

dev #17871 OAI - Remove useless message while importing via a browser

parent ebae0651
Branches
Tags
2 merge requests!917Dev#17871 oaista la vista,!904Dev#17871 oaista la vista
......@@ -39,7 +39,9 @@ abstract class Class_Cosmogramme_Integration_PhaseOnDataSource extends Class_Cos
$msg = ($processed > 0) ?
$processed . ' fichier(s) traité(s).' :
'aucun fichier traité';
$this->_log->ecrire('<br><span class="violet">' . $msg . '</span><br>');
if (!$this->isTimeOut())
$this->_log->ecrire('<br><span class="violet">' . $msg . '</span><br>');
}
......
......@@ -108,6 +108,12 @@ class PhaseNoticeOAITest extends PhaseNoticeOAITestCase {
public function oldItemShouldHaveBeenDeleted() {
$this->assertEmpty(Class_Notice::find(1)->getExemplaires());
}
/** @test */
public function logShouldNotContainsAucunFichier() {
$this->assertNotLogContains('aucun fichier traité');
}
}
......
......@@ -76,6 +76,11 @@ abstract class Class_Cosmogramme_Integration_PhaseTestCase extends ModelTestCase
$this->assertContains($value, $this->_log_content);
}
protected function assertNotLogContains($value) {
$this->assertNotContains($value, $this->_log_content);
}
protected function _getPreviousPhase() {
return null;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment