Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Modernize category collection functional tests
Use a dummy extension and .csv imports from the functional test framework instead of creating tables and records on the fly. Resolves: #85179 Releases: master Change-Id: Ia8f077984e588a2bb142a0e516aad198f914bec9 Reviewed-on: https://review.typo3.org/57143 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl> Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
- Loading branch information
Showing
5 changed files
with
79 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...3/sysext/core/Tests/Functional/Category/Collection/Fixtures/DataSet/categoryRelations.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
"tx_test_test",,,, | ||
,"uid","pid","title", | ||
,1,0,foo1, | ||
,2,0,foo2, | ||
,3,0,foo3, | ||
,4,0,foo4, | ||
,5,0,foo5, | ||
"sys_category",,,, | ||
,"uid","pid","title", | ||
,1,0,cat1, | ||
"sys_category_record_mm",,,, | ||
,"uid_local","uid_foreign","tablenames","fieldname" | ||
,1,1,tx_test_test,categories | ||
,1,2,tx_test_test,categories | ||
,1,3,tx_test_test,categories | ||
,1,4,tx_test_test,categories | ||
,1,5,tx_test_test,categories |
5 changes: 5 additions & 0 deletions
5
...unctional/Category/Collection/Fixtures/Extensions/test/Configuration/TCA/tx_test_test.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
return [ | ||
'ctrl' => [], | ||
'columns' => [], | ||
]; |
21 changes: 21 additions & 0 deletions
21
.../sysext/core/Tests/Functional/Category/Collection/Fixtures/Extensions/test/ext_emconf.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
$EM_CONF[$_EXTKEY] = [ | ||
'title' => 'test extension', | ||
'description' => '', | ||
'category' => '', | ||
'version' => '9.3.0', | ||
'state' => 'beta', | ||
'uploadfolder' => 0, | ||
'createDirs' => '', | ||
'clearCacheOnLoad' => 0, | ||
'author' => 'Christian Kuhn', | ||
'author_email' => 'lolli@schwarzbu.ch', | ||
'author_company' => '', | ||
'constraints' => [ | ||
'depends' => [ | ||
'typo3' => '9.3.0', | ||
], | ||
'conflicts' => [], | ||
'suggests' => [], | ||
], | ||
]; |
6 changes: 6 additions & 0 deletions
6
.../sysext/core/Tests/Functional/Category/Collection/Fixtures/Extensions/test/ext_tables.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# | ||
# Table structure for table 'tx_test_test' | ||
# | ||
CREATE TABLE tx_test_test ( | ||
title tinytext | ||
); |