Skip to content

Commit

Permalink
[BUGFIX] Fix provided test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
d-g-codappix authored and achimfritz committed Aug 6, 2024
1 parent 151d7ca commit ef6cc8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"tt_content"
,"uid","pid","colPos","CType","sorting","tx_container_parent"
,1,1,0,b13-2cols-with-header-container,1,
,2,1,0,b13-2cols-with-header-container,2,1
,2,1,202,b13-2cols-with-header-container,2,1
,3,1,202,,5,2
,4,1,0,"b13-2cols-with-header-container",3,
,5,1,202,,4,3
,5,1,202,,4,4
4 changes: 2 additions & 2 deletions Tests/Functional/Integrity/SortingInPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ public function containerIsSortedAfterChildOfPreviousContainerWithNestedChangedC
$errors = $this->sorting->run(false);
self::assertTrue(count($errors) === 1, 'should get one error');
$rows = $this->getContentsByUid();
self::assertTrue($rows[2]['sorting'] > $rows[5]['sorting'], 'container should be sorted after last nested child of previous container');
self::assertTrue($rows[3]['sorting'] > $rows[2]['sorting'], 'child should be sorted after its own parent container after resorting');
self::assertTrue($rows[4]['sorting'] > $rows[3]['sorting'], 'container should be sorted after last nested child of previous container');
self::assertTrue($rows[5]['sorting'] > $rows[4]['sorting'], 'child should be sorted after its own parent container after resorting');
}

/**
Expand Down

0 comments on commit ef6cc8d

Please sign in to comment.