Fixed tests.

This commit is contained in:
Jan Böhmer 2023-01-30 23:40:22 +01:00
parent dc012b56a8
commit b668218154
2 changed files with 4 additions and 4 deletions

View file

@ -82,8 +82,8 @@ class StructuralDBElementRepositoryTest extends WebTestCase
//Check that IDs were set correctly
$this->assertSame(1, $tree[0]->getId());
$this->assertSame(2, $tree[1]->getId());
$this->assertSame(7, $tree[0]->getNodes()[0]->getNodes()[0]->getId());
$this->assertSame(5, $tree[1]->getId());
$this->assertSame(3, $tree[0]->getNodes()[0]->getNodes()[0]->getId());
}
/**

View file

@ -72,8 +72,8 @@ class TreeViewGeneratorTest extends WebTestCase
//Check that IDs were set correctly
$this->assertSame(1, $tree[0]->getId());
$this->assertSame(2, $tree[1]->getId());
$this->assertSame(7, $tree[0]->getNodes()[0]->getNodes()[0]->getId());
$this->assertSame(5, $tree[1]->getId());
$this->assertSame(3, $tree[0]->getNodes()[0]->getNodes()[0]->getId());
}
public function testGetTreeViewBasic(): void