diff --git a/Configuration/TCA/tx_blogexample_domain_model_post.php b/Configuration/TCA/tx_blogexample_domain_model_post.php index ec9c384..819b96a 100644 --- a/Configuration/TCA/tx_blogexample_domain_model_post.php +++ b/Configuration/TCA/tx_blogexample_domain_model_post.php @@ -23,10 +23,6 @@ 'default' => 'blogexample_post', ], ], - 'interface' => [ - 'maxDBListItems' => 100, - 'maxSingleDBListItems' => 500, - ], 'columns' => [ 'blog' => [ 'exclude' => true, @@ -143,18 +139,17 @@ ], 'comments' => [ 'exclude' => true, - 'label' => 'LLL:blog_example.db:tx_blogexample_domain_model_post.comments', + 'label' => 'Comments', 'config' => [ - 'type' => 'inline', + 'type' => 'group', + 'allowed' => 'tx_blogexample_domain_model_comment', 'foreign_table' => 'tx_blogexample_domain_model_comment', 'foreign_field' => 'post', + 'foreign_table_where' => 'ORDER BY tx_blogexample_domain_model_comment.uid', 'size' => 10, - 'autoSizeMax' => 30, - 'multiple' => 0, - 'appearance' => [ - 'collapseAll' => 1, - 'expandSingle' => 1, - ], + 'maxitems' => 9999, + 'minitems' => 0, + 'default' => '', ], ], 'related_posts' => [ @@ -194,16 +189,6 @@ 'maxitems' => 1, ], ], - 'additional_comments' => [ - 'exclude' => true, - 'label' => 'LLL:blog_example.db:tx_blogexample_domain_model_post.additional_comments', - 'config' => [ - 'type' => 'inline', // this will store the comments uids in the additional_comments field (CSV) - 'foreign_table' => 'tx_blogexample_domain_model_comment', - 'minitems' => 0, - 'maxitems' => 200, - ], - ], 'category' => [ 'config' => [ 'type' => 'category', @@ -213,7 +198,7 @@ 'types' => [ '1' => ['showitem' => ' --div--;LLL:core.form.tabs:general, - blog, title, date, author, second_author, content, tags, comments, related_posts, additional_name, additional_info, additional_comments, + blog, title, date, author, second_author, content, tags, comments, related_posts, additional_name, additional_info, --div--;LLL:core.form.tabs:categories, category, --div--;LLL:core.form.tabs:access, diff --git a/Tests/Unit/Domain/Model/TagTest.php b/Tests/Unit/Domain/Model/TagTest.php index 15f3bc0..968de94 100644 --- a/Tests/Unit/Domain/Model/TagTest.php +++ b/Tests/Unit/Domain/Model/TagTest.php @@ -32,16 +32,6 @@ public function testTagInitiallyReturnsEmptyString(): void ); } - public function testTagReturnsValueFromConstructorArgument(): void - { - $subject = new Tag('TYPO3'); - - self::assertSame( - 'TYPO3', - (string)$subject, - ); - } - public function testPriorityInitiallyReturnsZero(): void { $subject = new Tag();