diff --git a/tests/testcases/ips/ipListTest.php b/tests/testcases/ips/ipListTest.php index 85a136707..212269c64 100644 --- a/tests/testcases/ips/ipListTest.php +++ b/tests/testcases/ips/ipListTest.php @@ -17,7 +17,7 @@ public function testGetIpAll() $data = $this->object->getIpAll(); $count = count($data); if ($count == 0) { - $this->markTestSkipped('No wordband items available in db'); + $this->markTestSkipped('No ip items available in db'); } $this->assertTrue(is_array($data)); diff --git a/tests/testcases/users/userRollTest.php b/tests/testcases/users/userRollTest.php index 55df3828f..5792efbcc 100644 --- a/tests/testcases/users/userRollTest.php +++ b/tests/testcases/users/userRollTest.php @@ -42,6 +42,14 @@ public function testCopy() $this->assertTrue($copy->exists()); $this->assertStringContainsString('Kopie von', $copy->getRollNameTranslated()); $this->assertTrue($copy->getCodex() === $object->getCodex()); + + $permOld = new \fpcm\model\permissions\permissions($this->object->getId()); + $permCopy = new \fpcm\model\permissions\permissions($copy->getId()); + + $expected = hash('sha256', json_encode($permOld->getPermissionData())); + $actual = hash('sha256', json_encode($permCopy->getPermissionData())); + + $this->assertEquals($expected, $actual); $this->assertTrue($copy->delete()); }