Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
calculation_fields
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
calculation_fields
Commits
1b0aca11
Commit
1b0aca11
authored
10 months ago
by
Project-Update-bot
Browse files
Options
Downloads
Patches
Plain Diff
Automated Project Update Bot fixes from run 11-199781.
parent
71617ab8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/src/UnitTest/FormCalculationElementTest.php
+2
-2
2 additions, 2 deletions
tests/src/UnitTest/FormCalculationElementTest.php
tests/src/UnitTest/FormCalculationMarkupElementTest.php
+2
-2
2 additions, 2 deletions
tests/src/UnitTest/FormCalculationMarkupElementTest.php
with
4 additions
and
4 deletions
tests/src/UnitTest/FormCalculationElementTest.php
+
2
−
2
View file @
1b0aca11
...
...
@@ -28,7 +28,7 @@ class FormCalculationElementTest extends UnitTestCase {
/**
* Provides data for the testgetFieldsFromExpression method.
*/
public
function
getFieldsFromExpressionDataProvider
()
{
public
static
function
getFieldsFromExpressionDataProvider
()
{
return
[
// Test simple math expressions.
[
':field1 + :field2'
,
[
'field1'
,
'field2'
]],
...
...
@@ -60,7 +60,7 @@ class FormCalculationElementTest extends UnitTestCase {
/**
* Provide test for testBuildExpression.
*/
public
function
buildExpressionDataProvider
()
{
public
static
function
buildExpressionDataProvider
()
{
return
[
[
':field1 + :field2'
,
[
'field1'
=>
1
,
'field2'
=>
2
],
'1 + 2'
],
[
':field1 * :field2'
,
[
'field1'
=>
1
,
'field2'
=>
2
],
'1 * 2'
],
...
...
This diff is collapsed.
Click to expand it.
tests/src/UnitTest/FormCalculationMarkupElementTest.php
+
2
−
2
View file @
1b0aca11
...
...
@@ -13,7 +13,7 @@ class FormCalculationMarkupElementTest extends UnitTestCase {
/**
* Test expressions built with markup elements.
*
* @dataProvider
testE
xtractEvaluationDataProvider
* @dataProvider
e
xtractEvaluationDataProvider
*/
public
function
testExtractEvaluation
(
$expression
,
$expected
)
{
$result
=
FormCalculationMarkupElement
::
extractEvaluation
([
...
...
@@ -26,7 +26,7 @@ class FormCalculationMarkupElementTest extends UnitTestCase {
/**
* Data provider to text extract evaluation.
*/
public
function
testE
xtractEvaluationDataProvider
()
{
public
static
function
e
xtractEvaluationDataProvider
()
{
return
[
[
'<h3>You account amount is: {{ :result }}</h3>'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment