Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
e0d57d05
Commit
e0d57d05
authored
May 13, 2021
by
Carsten Rose
Browse files
Fix remaining failed unit tests.
parent
1104a8c4
Pipeline
#5236
failed with stages
in 2 minutes and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Tests/Unit/Core/Report/ReportTest.php
View file @
e0d57d05
...
...
@@ -951,6 +951,8 @@ EOF;
// _paged: incl. alert
$result
=
$this
->
report
->
process
(
"10.sql = SELECT 'U:form=Person&r=123' AS _paged FROM Person ORDER BY id LIMIT 1"
);
// $this->assertEquals('<a href="' . Path::urlApi(API_DELETE_PHP) . '?s=badcaffee1234" class="btn btn-default" title="Delete" ' . $js . ' ><span class="glyphicon glyphicon-trash" ></span></a>', $result);
// unit test behaves different on webwork16/crose/qfq and gitlab runner: so remove problematic BASE_DIR_FAKE
$result
=
str_replace
(
BASE_DIR_FAKE
,
''
,
$result
);
$this
->
assertEquals
(
'<a href="'
.
Path
::
appToApi
(
API_DELETE_PHP
)
.
'?s=badcaffee1234" class="btn btn-default" title="Delete" '
.
$js
.
' ><span class="glyphicon glyphicon-trash" ></span></a>'
,
$result
);
// _paged: other than defaults for the alert.
...
...
@@ -1011,6 +1013,8 @@ EOF;
$js
=
str_replace
(
'modal: true'
,
'modal: false'
,
$js
);
$js
=
str_replace
(
"type: 'warning'"
,
"type: 'success'"
,
$js
);
$result
=
$this
->
report
->
process
(
"10.sql = SELECT 'table=Person&r=123|||Move to trash?:success:yes:no:10:0' AS _Paged FROM Person ORDER BY id LIMIT 1"
);
// unit test behaves different on webwork16/crose/qfq and gitlab runner: so remove problematic BASE_DIR_FAKE
$result
=
str_replace
(
BASE_DIR_FAKE
,
''
,
$result
);
$this
->
assertEquals
(
'<a href="'
.
Path
::
appToApi
(
API_DELETE_PHP
)
.
'?s=badcaffee1234" class="btn btn-default" title="Delete" '
.
$js
.
' ><span class="glyphicon glyphicon-trash" ></span></a>'
,
$result
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment