Fix infolog double PM change test

This commit is contained in:
nathan 2021-11-22 10:28:29 -07:00
parent cb65460b5f
commit 6502687268

View File

@ -173,7 +173,12 @@ class DoubleLinkPMTest extends \EGroupware\Api\EtemplateTest
$this->makeProject('3'); $this->makeProject('3');
$new_project = $this->pm_id[2]; $new_project = $this->pm_id[2];
// Sleep for a bit to make the modified time different, or it will fail
sleep(1);
// Fake opening the edit dialog, important not to pass an array to accurately copy normal behaviour // Fake opening the edit dialog, important not to pass an array to accurately copy normal behaviour
// New BO to make sure we get a clean load, no caching
$this->ui->bo = $this->bo = new \infolog_bo();
$this->ui->edit($this->info_id); $this->ui->edit($this->info_id);
$content = self::$mocked_exec_result; $content = self::$mocked_exec_result;