Skip to content

Commit

Permalink
menu types output unified: Improved Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Niels Seelhöfer committed Apr 1, 2022
1 parent 553b13c commit 74c8805
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Tests/Functional/ContentTypes/MenuCardDirElementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private function checkItems(array $contentElement): void
self::assertCount(5, $contentElement['content']['items']);

foreach ($contentElement['content']['items'] as $page) {
self::assertCount(13, $page);
self::assertCount(12, $page);
self::assertArrayHasKey('title', $page);
self::assertArrayHasKey('link', $page);
self::assertArrayHasKey('target', $page);
Expand Down
2 changes: 1 addition & 1 deletion Tests/Functional/ContentTypes/MenuCardListElementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private function checkItems($contentElement): void
self::assertCount(3, $contentElement['content']['items']);

foreach ($contentElement['content']['items'] as $page) {
self::assertCount(13, $page);
self::assertCount(12, $page);
self::assertArrayHasKey('title', $page);
self::assertArrayHasKey('link', $page);
self::assertArrayHasKey('target', $page);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private function checkItems(array $contentElement): void
self::assertCount(5, $contentElement['content']['items']);

foreach ($contentElement['content']['items'] as $page) {
self::assertCount(13, $page);
self::assertCount(12, $page);
self::assertArrayHasKey('title', $page);
self::assertArrayHasKey('link', $page);
self::assertArrayHasKey('target', $page);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private function checkItems($contentElement): void
self::assertCount(3, $contentElement['content']['items']);

foreach ($contentElement['content']['items'] as $page) {
self::assertCount(13, $page);
self::assertCount(12, $page);
self::assertArrayHasKey('title', $page);
self::assertArrayHasKey('link', $page);
self::assertArrayHasKey('target', $page);
Expand Down

0 comments on commit 74c8805

Please sign in to comment.