mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Some more test debug
This commit is contained in:
parent
a7ada435d7
commit
287c7e56de
@ -103,6 +103,9 @@ class ProjectTemplateTest extends \EGroupware\Projectmanager\TemplateTest
|
||||
}
|
||||
|
||||
$element_id = $bo->write($element, true, true, true, true);
|
||||
$this->assertIsNumeric($element_id, "Problem creating test infolog entry");
|
||||
$this->assertNotEquals(false, $element_id, "Problem creating test infolog entry");
|
||||
|
||||
$this->elements[] = 'infolog:' . $element_id;
|
||||
|
||||
if ($custom)
|
||||
@ -123,7 +126,13 @@ class ProjectTemplateTest extends \EGroupware\Projectmanager\TemplateTest
|
||||
$indexed_elements = array();
|
||||
$unmatched_elements = $this->elements;
|
||||
|
||||
foreach($element_bo->search(array('pm_id' => $clone_id), false, 'pe_id ASC') as $element)
|
||||
echo __METHOD__;
|
||||
echo "Checking on (copied) PM ID $clone_id";
|
||||
$elements = $element_bo->search(array('pm_id' => $clone_id), false, 'pe_id ASC');
|
||||
// Expect 1 sub-project, 2 infologs
|
||||
$this->assertCount(3, $elements, "Incorrect number of project elements");
|
||||
|
||||
foreach ($elements as $element)
|
||||
{
|
||||
echo "\tPM:" . $element['pm_id'] . ' ' . $element['pe_id'] . "\t" . $element['pe_app'] . ':' . $element['pe_app_id'] . "\t" . $element['pe_title'] . "\n" . Link::title($element['pe_app'], $element['pe_app_id']) . "\n";
|
||||
$indexed_elements[$element['pe_app']][] = $element;
|
||||
|
Loading…
Reference in New Issue
Block a user