Skip to content

Commit a14646a

Browse files
committed
[TASK] Make tests work again
Releases: main
1 parent 32d028f commit a14646a

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
@@ -21,10 +21,6 @@
2121
],
2222
'iconfile' => 'EXT:blog_example/Resources/Public/Icons/icon_tx_blogexample_domain_model_post.gif',
2323
],
24-
'interface' => [
25-
'maxDBListItems' => 100,
26-
'maxSingleDBListItems' => 500,
27-
],
2824
'columns' => [
2925
'blog' => [
3026
'exclude' => true,
@@ -141,18 +137,17 @@
141137
],
142138
'comments' => [
143139
'exclude' => true,
144-
'label' => 'LLL:blog_example.db:tx_blogexample_domain_model_post.comments',
140+
'label' => 'Comments',
145141
'config' => [
146-
'type' => 'inline',
142+
'type' => 'group',
143+
'allowed' => 'tx_blogexample_domain_model_comment',
147144
'foreign_table' => 'tx_blogexample_domain_model_comment',
148145
'foreign_field' => 'post',
146+
'foreign_table_where' => 'ORDER BY tx_blogexample_domain_model_comment.uid',
149147
'size' => 10,
150-
'autoSizeMax' => 30,
151-
'multiple' => 0,
152-
'appearance' => [
153-
'collapseAll' => 1,
154-
'expandSingle' => 1,
155-
],
148+
'maxitems' => 9999,
149+
'minitems' => 0,
150+
'default' => '',
156151
],
157152
],
158153
'related_posts' => [
@@ -192,16 +187,6 @@
192187
'maxitems' => 1,
193188
],
194189
],
195-
'additional_comments' => [
196-
'exclude' => true,
197-
'label' => 'LLL:blog_example.db:tx_blogexample_domain_model_post.additional_comments',
198-
'config' => [
199-
'type' => 'inline', // this will store the comments uids in the additional_comments field (CSV)
200-
'foreign_table' => 'tx_blogexample_domain_model_comment',
201-
'minitems' => 0,
202-
'maxitems' => 200,
203-
],
204-
],
205190
'category' => [
206191
'config' => [
207192
'type' => 'category',
@@ -211,7 +196,7 @@
211196
'types' => [
212197
'1' => ['showitem' => '
213198
--div--;LLL:core.form.tabs:general,
214-
blog, title, date, author, second_author, content, tags, comments, related_posts, additional_name, additional_info, additional_comments,
199+
blog, title, date, author, second_author, content, tags, comments, related_posts, additional_name, additional_info,
215200
--div--;LLL:core.form.tabs:categories,
216201
category,
217202
--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)