Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
df61162e
Commit
df61162e
authored
Nov 08, 2019
by
Carsten Rose
Browse files
fix unit tests
parent
3792b029
Pipeline
#2669
failed with stages
in 1 minute and 56 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
extension/Tests/Unit/Core/Helper/HelperFormElementTest.php
View file @
df61162e
...
...
@@ -19,6 +19,11 @@ use PHPUnit\Framework\TestCase;
*/
class
HelperFormElementTest
extends
TestCase
{
/**
* @throws \CodeException
* @throws \UserFormException
* @throws \UserReportException
*/
public
function
testExplodeParameter
()
{
$a
=
array
();
...
...
@@ -33,6 +38,11 @@ class HelperFormElementTest extends TestCase {
$this
->
assertEquals
(
$b
,
$a
,
"Both arrays should be equal"
);
}
/**
* @throws \CodeException
* @throws \UserFormException
* @throws \UserReportException
*/
public
function
testExplodeParameterInArrayElements
()
{
$a
=
array
();
HelperFormElement
::
explodeParameterInArrayElements
(
$a
,
FE_PARAMETER
);
...
...
@@ -48,8 +58,9 @@ class HelperFormElementTest extends TestCase {
/**
* @expectedException \UserFormException
*
* @throws \CodeException
* @throws \UserFormException
* @throws \UserReportException
*/
public
function
testExplodeFieldParameterException
()
{
...
...
@@ -187,6 +198,9 @@ class HelperFormElementTest extends TestCase {
}
/**
* @throws \UserFormException
*/
public
function
testPenColorToHex
()
{
$result
=
HelperFormElement
::
penColorToHex
([
FE_DEFAULT_PEN_COLOR
=>
''
]);
$this
->
assertEquals
(
''
,
$result
,
"Expect empty string"
);
...
...
Write
Preview
Supports
Markdown
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