Commit 43b9f1db authored by Marc Egger's avatar Marc Egger
Browse files

debug phpunit

parent ee12f05b
Pipeline #4010 failed with stages
in 4 minutes and 9 seconds
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment