Skip to content

Commit aaa1380

Browse files
committed
[TASK] Make tests work again
Releases: main
1 parent e8b2bfe commit aaa1380

File tree

2 files changed

+8
-33
lines changed

2 files changed

+8
-33
lines changed

Configuration/TCA/tx_blogexample_domain_model_post.php

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@
2323
'default' => 'blogexample_post',
2424
],
2525
],
26-
'interface' => [
27-
'maxDBListItems' => 100,
28-
'maxSingleDBListItems' => 500,
29-
],
3026
'columns' => [
3127
'blog' => [
3228
'exclude' => true,
@@ -143,18 +139,17 @@
143139
],
144140
'comments' => [
145141
'exclude' => true,
146-
'label' => 'LLL:blog_example.db:tx_blogexample_domain_model_post.comments',
142+
'label' => 'Comments',
147143
'config' => [
148-
'type' => 'inline',
144+
'type' => 'group',
145+
'allowed' => 'tx_blogexample_domain_model_comment',
149146
'foreign_table' => 'tx_blogexample_domain_model_comment',
150147
'foreign_field' => 'post',
148+
'foreign_table_where' => 'ORDER BY tx_blogexample_domain_model_comment.uid',
151149
'size' => 10,
152-
'autoSizeMax' => 30,
153-
'multiple' => 0,
154-
'appearance' => [
155-
'collapseAll' => 1,
156-
'expandSingle' => 1,
157-
],
150+
'maxitems' => 9999,
151+
'minitems' => 0,
152+
'default' => '',
158153
],
159154
],
160155
'related_posts' => [
@@ -194,16 +189,6 @@
194189
'maxitems' => 1,
195190
],
196191
],
197-
'additional_comments' => [
198-
'exclude' => true,
199-
'label' => 'LLL:blog_example.db:tx_blogexample_domain_model_post.additional_comments',
200-
'config' => [
201-
'type' => 'inline', // this will store the comments uids in the additional_comments field (CSV)
202-
'foreign_table' => 'tx_blogexample_domain_model_comment',
203-
'minitems' => 0,
204-
'maxitems' => 200,
205-
],
206-
],
207192
'category' => [
208193
'config' => [
209194
'type' => 'category',
@@ -213,7 +198,7 @@
213198
'types' => [
214199
'1' => ['showitem' => '
215200
--div--;LLL:core.form.tabs:general,
216-
blog, title, date, author, second_author, content, tags, comments, related_posts, additional_name, additional_info, additional_comments,
201+
blog, title, date, author, second_author, content, tags, comments, related_posts, additional_name, additional_info,
217202
--div--;LLL:core.form.tabs:categories,
218203
category,
219204
--div--;LLL:core.form.tabs:access,

Tests/Unit/Domain/Model/TagTest.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,6 @@ public function testTagInitiallyReturnsEmptyString(): void
3232
);
3333
}
3434

35-
public function testTagReturnsValueFromConstructorArgument(): void
36-
{
37-
$subject = new Tag('TYPO3');
38-
39-
self::assertSame(
40-
'TYPO3',
41-
(string)$subject,
42-
);
43-
}
44-
4535
public function testPriorityInitiallyReturnsZero(): void
4636
{
4737
$subject = new Tag();

0 commit comments

Comments
 (0)