diff --git a/tests/lib/Server/Output/ValueObjectVisitor/RestContentTest.php b/tests/lib/Server/Output/ValueObjectVisitor/RestContentTest.php index b5d5fb78..676c19d1 100644 --- a/tests/lib/Server/Output/ValueObjectVisitor/RestContentTest.php +++ b/tests/lib/Server/Output/ValueObjectVisitor/RestContentTest.php @@ -114,7 +114,7 @@ protected function getBasicRestContent() [ 'id' => 'content23', 'name' => 'Sindelfingen', - 'sectionId' => 'section23', + 'sectionId' => 23, 'currentVersionNo' => 5, 'published' => true, 'ownerId' => 'user23', @@ -265,7 +265,7 @@ public function testCurrentVersionMediaTypeCorrect(\DOMDocument $dom) */ public function testSectionHrefCorrect(\DOMDocument $dom) { - $this->assertXPath($dom, '/Content/Section[@href="/content/sections/section23"]'); + $this->assertXPath($dom, '/Content/Section[@href="/content/sections/23"]'); } /** diff --git a/tests/lib/Server/Output/ValueObjectVisitor/RestUserGroupTest.php b/tests/lib/Server/Output/ValueObjectVisitor/RestUserGroupTest.php index ba18dc64..4b53d9a7 100644 --- a/tests/lib/Server/Output/ValueObjectVisitor/RestUserGroupTest.php +++ b/tests/lib/Server/Output/ValueObjectVisitor/RestUserGroupTest.php @@ -112,7 +112,7 @@ protected function getBasicRestUserGroup() [ 'id' => 'content23', 'name' => 'Sindelfingen', - 'sectionId' => 'section23', + 'sectionId' => 23, 'currentVersionNo' => 5, 'published' => true, 'ownerId' => 'user23', @@ -232,7 +232,7 @@ public function testVersionsMediaTypeCorrect(\DOMDocument $dom) */ public function testSectionHrefCorrect(\DOMDocument $dom) { - $this->assertXPath($dom, '/UserGroup/Section[@href="/content/sections/section23"]'); + $this->assertXPath($dom, '/UserGroup/Section[@href="/content/sections/23"]'); } /** diff --git a/tests/lib/Server/Output/ValueObjectVisitor/RestUserTest.php b/tests/lib/Server/Output/ValueObjectVisitor/RestUserTest.php index f40edb5c..d264bad2 100644 --- a/tests/lib/Server/Output/ValueObjectVisitor/RestUserTest.php +++ b/tests/lib/Server/Output/ValueObjectVisitor/RestUserTest.php @@ -107,7 +107,7 @@ protected function getBasicRestUser() [ 'id' => 'content23', 'name' => 'Sindelfingen', - 'sectionId' => 'section23', + 'sectionId' => 23, 'currentVersionNo' => 5, 'published' => true, 'ownerId' => 'user23', @@ -227,7 +227,7 @@ public function testVersionsMediaTypeCorrect(\DOMDocument $dom) */ public function testSectionHrefCorrect(\DOMDocument $dom) { - $this->assertXPath($dom, '/User/Section[@href="/content/sections/section23"]'); + $this->assertXPath($dom, '/User/Section[@href="/content/sections/23"]'); } /**