Skip to content

Commit

Permalink
[Tests] Fixed incorrect section id data type
Browse files Browse the repository at this point in the history
  • Loading branch information
alongosz committed Mar 27, 2024
1 parent 422c9c1 commit 9a50c44
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ protected function getBasicRestContent()
[
'id' => 'content23',
'name' => 'Sindelfingen',
'sectionId' => 'section23',
'sectionId' => 23,
'currentVersionNo' => 5,
'published' => true,
'ownerId' => 'user23',
Expand Down Expand Up @@ -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"]');
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ protected function getBasicRestUserGroup()
[
'id' => 'content23',
'name' => 'Sindelfingen',
'sectionId' => 'section23',
'sectionId' => 23,
'currentVersionNo' => 5,
'published' => true,
'ownerId' => 'user23',
Expand Down Expand Up @@ -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"]');
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/lib/Server/Output/ValueObjectVisitor/RestUserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ protected function getBasicRestUser()
[
'id' => 'content23',
'name' => 'Sindelfingen',
'sectionId' => 'section23',
'sectionId' => 23,
'currentVersionNo' => 5,
'published' => true,
'ownerId' => 'user23',
Expand Down Expand Up @@ -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"]');
}

/**
Expand Down

0 comments on commit 9a50c44

Please sign in to comment.