forked from mirror/Part-DB.Part-DB-server
Fixed tests.
This commit is contained in:
parent
dc012b56a8
commit
b668218154
2 changed files with 4 additions and 4 deletions
|
@ -82,8 +82,8 @@ class StructuralDBElementRepositoryTest extends WebTestCase
|
||||||
|
|
||||||
//Check that IDs were set correctly
|
//Check that IDs were set correctly
|
||||||
$this->assertSame(1, $tree[0]->getId());
|
$this->assertSame(1, $tree[0]->getId());
|
||||||
$this->assertSame(2, $tree[1]->getId());
|
$this->assertSame(5, $tree[1]->getId());
|
||||||
$this->assertSame(7, $tree[0]->getNodes()[0]->getNodes()[0]->getId());
|
$this->assertSame(3, $tree[0]->getNodes()[0]->getNodes()[0]->getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -72,8 +72,8 @@ class TreeViewGeneratorTest extends WebTestCase
|
||||||
|
|
||||||
//Check that IDs were set correctly
|
//Check that IDs were set correctly
|
||||||
$this->assertSame(1, $tree[0]->getId());
|
$this->assertSame(1, $tree[0]->getId());
|
||||||
$this->assertSame(2, $tree[1]->getId());
|
$this->assertSame(5, $tree[1]->getId());
|
||||||
$this->assertSame(7, $tree[0]->getNodes()[0]->getNodes()[0]->getId());
|
$this->assertSame(3, $tree[0]->getNodes()[0]->getNodes()[0]->getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testGetTreeViewBasic(): void
|
public function testGetTreeViewBasic(): void
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue