From 9a50c44c439c01443d940967887b19464cc23fd6 Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Wed, 27 Mar 2024 13:03:48 +0100 Subject: [PATCH] [Tests] Fixed incorrect section id data type --- .../lib/Server/Output/ValueObjectVisitor/RestContentTest.php | 4 ++-- .../Server/Output/ValueObjectVisitor/RestUserGroupTest.php | 4 ++-- tests/lib/Server/Output/ValueObjectVisitor/RestUserTest.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) 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"]'); } /**