Skip to content

Commit 359b5a2

Browse files
Adjust tests for ToolboxController
1 parent cddd2bf commit 359b5a2

File tree

3 files changed

+34
-34
lines changed

3 files changed

+34
-34
lines changed

Tests/Functional/Controller/ToolboxControllerTest.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ public function setUp(): void
3535
/**
3636
* @test
3737
*/
38-
public function canFulltextdownloadtool()
38+
public function canFulltextDownloadTool()
3939
{
4040
$settings = [
41-
'tools' => 'tx_dlf_fulltextdownloadtool'
41+
'tools' => 'fulltextDownloadTool'
4242
];
4343
$templateHtml = '<html>fulltextDownload:{fulltextDownload}</html>';
4444
$controller = $this->setUpController(ToolboxController::class, $settings, $templateHtml);
@@ -55,10 +55,10 @@ public function canFulltextdownloadtool()
5555
/**
5656
* @test
5757
*/
58-
public function canFulltexttool()
58+
public function canFulltextTool()
5959
{
6060
$settings = [
61-
'tools' => 'tx_dlf_fulltexttool',
61+
'tools' => 'fulltextTool',
6262
'activateFullTextInitially' => 1
6363
];
6464
$templateHtml = '<html>fulltext:{fulltext},activateFullTextInitially:{activateFullTextInitially}</html>';
@@ -76,10 +76,10 @@ public function canFulltexttool()
7676
/**
7777
* @test
7878
*/
79-
public function canImagedownloadtool()
79+
public function canImageDownloadTool()
8080
{
8181
$settings = [
82-
'tools' => 'tx_dlf_imagedownloadtool'
82+
'tools' => 'imageDownloadTool'
8383
];
8484
$templateHtml = '<html>imageDownload:<f:for each="{imageDownload}" as="image">
8585
{image.url}{image.mimetypeLabel}</f:for>
@@ -101,10 +101,10 @@ public function canImagedownloadtool()
101101
/**
102102
* @test
103103
*/
104-
public function canImagemanipulationtool()
104+
public function canImageManipulationTool()
105105
{
106106
$settings = [
107-
'tools' => 'tx_dlf_imagemanipulationtool',
107+
'tools' => 'imageManipulationTool',
108108
'parentContainer' => '.parent-container'
109109
];
110110
$templateHtml = '<html>imageManipulation:{imageManipulation},parentContainer:{parentContainer}</html>';
@@ -127,7 +127,7 @@ public function canMainAction()
127127
$settings = [
128128
'solrcore' => self::$solrCoreId,
129129
'library' => 1,
130-
'tools' => 'tx_dlf_annotationtool',
130+
'tools' => 'annotationTool',
131131
'limit' => 1
132132
];
133133
$templateHtml = '<html>double:{double}</html>';
@@ -146,10 +146,10 @@ public function canMainAction()
146146
/**
147147
* @test
148148
*/
149-
public function canPdfdownloadtool()
149+
public function canPdfDownloadTool()
150150
{
151151
$settings = [
152-
'tools' => 'tx_dlf_pdfdownloadtool'
152+
'tools' => 'pdfDownloadTool'
153153
];
154154
$templateHtml = '<html>pageLinks:<f:for each="{pageLinks}" as="link">
155155
{link}</f:for>
@@ -173,11 +173,11 @@ public function canPdfdownloadtool()
173173
/**
174174
* @test
175175
*/
176-
public function canSearchindocumenttool()
176+
public function canSearchInDocumentTool()
177177
{
178178
$settings = [
179179
'solrcore' => self::$solrCoreId,
180-
'tools' => 'tx_dlf_searchindocumenttool',
180+
'tools' => 'searchInDocumentTool',
181181
'queryInputName' => 'queryInputName',
182182
'startInputName' => 'startInputName',
183183
'idInputName' => 'idInputName',

Tests/Functional/FunctionalTestCase.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@ class FunctionalTestCase extends \TYPO3\TestingFramework\Core\Functional\Functio
5353
'SC_OPTIONS' => [
5454
'dlf/Classes/Plugin/Toolbox.php' => [
5555
'tools' => [
56-
'tx_dlf_scoretool' => 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.scoretool',
57-
'tx_dlf_fulltexttool' => 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.fulltexttool',
58-
'tx_dlf_multiviewaddsourcetool' => 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.multiviewaddsourcetool',
59-
'tx_dlf_annotationtool' => 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.annotationtool',
60-
'tx_dlf_fulltextdownloadtool' => 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.fulltextdownloadtool',
61-
'tx_dlf_imagedownloadtool' => 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.imagedownloadtool',
62-
'tx_dlf_imagemanipulationtool' => 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.imagemanipulationtool',
63-
'tx_dlf_modeldownloadtool' => 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.modeldownloadtool',
64-
'tx_dlf_pdfdownloadtool' => 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.pdfdownloadtool',
65-
'tx_dlf_searchindocumenttool' => 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.searchindocumenttool',
56+
'scoreTool' => 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.scoretool',
57+
'fulltextTool' => 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.fulltexttool',
58+
'multiViewAddSourceTool' => 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.multiviewaddsourcetool',
59+
'annotationTool' => 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.annotationtool',
60+
'fulltextDownloadTool' => 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.fulltextdownloadtool',
61+
'imageDownloadTool' => 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.imagedownloadtool',
62+
'imageManipulationTool' => 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.imagemanipulationtool',
63+
'modelDownloadTool' => 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.modeldownloadtool',
64+
'pdfDownloadTool' => 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.pdfdownloadtool',
65+
'searchInDocumentTool' => 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.searchindocumenttool',
6666
]
6767
]
6868
],

Tests/Functional/Hooks/ItemsProcFuncTest.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function setUp(): void
3636
/**
3737
* @test
3838
*/
39-
public function canToollist()
39+
public function canToolList()
4040
{
4141
$this->initLanguageService('default');
4242
$itemsProcFunc = new ItemsProcFunc();
@@ -45,16 +45,16 @@ public function canToollist()
4545
$itemsProcFunc->toolList($params);
4646
$expected = [
4747
'items' => [
48-
['Score', 'tx_dlf_scoretool'],
49-
['Fulltext', 'tx_dlf_fulltexttool'],
50-
['Add Multiview Source', 'tx_dlf_multiviewaddsourcetool'],
51-
['IIIF Annotations', 'tx_dlf_annotationtool'],
52-
['Fulltext Download', 'tx_dlf_fulltextdownloadtool'],
53-
['Image Download', 'tx_dlf_imagedownloadtool'],
54-
['Image Manipulation', 'tx_dlf_imagemanipulationtool'],
55-
['Model Download', 'tx_dlf_modeldownloadtool'],
56-
['PDF Download', 'tx_dlf_pdfdownloadtool'],
57-
['Search in Document', 'tx_dlf_searchindocumenttool']
48+
['Score', 'scoreTool'],
49+
['Fulltext', 'fulltextTool'],
50+
['Add Multiview Source', 'multiViewAddSourceTool'],
51+
['IIIF Annotations', 'annotationTool'],
52+
['Fulltext Download', 'fulltextDownloadTool'],
53+
['Image Download', 'imageDownloadTool'],
54+
['Image Manipulation', 'imageManipulationTool'],
55+
['Model Download', 'modelDownloadTool'],
56+
['PDF Download', 'pdfDownloadTool'],
57+
['Search in Document', 'searchInDocumentTool']
5858
]
5959
];
6060
$this->assertEquals($expected, $params);

0 commit comments

Comments
 (0)