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
43b9f1db
Commit
43b9f1db
authored
Oct 14, 2020
by
Marc Egger
Browse files
debug phpunit
parent
ee12f05b
Pipeline
#4010
failed with stages
in 4 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Tests/Unit/Core/BuildFormPlainTest.php
View file @
43b9f1db
...
...
@@ -407,13 +407,6 @@ class BuildFormPlainTest extends AbstractDatabaseTest {
$formElement
[
SUBRECORD_PARAMETER_FORM
]
=
'Person'
;
$formElement
[
FE_SUBRECORD_OPTION
]
=
''
;
// DEBUG
throw
new
\
UserFormException
(
json_encode
(
[
ERROR_MESSAGE_TO_USER
=>
print_r
([
is_readable
(
Path
::
cwdToApp
(
Path
::
APP_TO_TYPO3_CONF
,
CONFIG_T3
))
?
'YES'
:
'NO'
,
Path
::
cwdToApp
(
Path
::
APP_TO_TYPO3_CONF
,
CONFIG_T3
)],
true
),
ERROR_MESSAGE_TO_DEVELOPER
=>
FE_DND_TABLE
.
' or '
.
SUBRECORD_PARAMETER_FORM
]),
ERROR_MISSING_TABLE_NAME
);
// END DEBUG
$result
=
$build
->
buildSubrecord
(
$formElement
,
'name:1'
,
''
,
$json
);
$this
->
assertEquals
(
'<table class="table table-hover qfq-subrecord-table qfq-color-grey-2" id="1-123" ><thead><tr><th>id</th><th>name</th><th>firstName</th></tr></thead><tbody ><tr class="record" ><td><span class="text-muted">1</span></td><td>Doe</td><td>John</td></tr><tr class="record" ><td><span class="text-muted">2</span></td><td>Smith</td><td>Jane</td></tr></tbody></table>'
,
$result
);
// $this->assertEquals('Please save this record first.', $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