Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for new rounded money format functions #12689

Merged
merged 1 commit into from
Aug 20, 2018

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Unit tests in support of #12626

Before

Untested

After

tested

Technical Details

Note that there are also some protected functions added. I have left those to be teste via this wrapper as they are not yet exposed

Comments

@mattwire @seamuslee001 ping

Note that there are also some protected functions added. I have left those to be teste via this wrapper as they are not yet exposed
@civibot
Copy link

civibot bot commented Aug 19, 2018

(Standard links)

/**
* Test rounded by currency function.
*
* This should be formatted according to European standards - . thousand separator
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eileenmcnaughton this comment doesn't seem to match the text which seems to be using , as a thousand separator and . as decimal

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't it $this->assertEquals('8.950,37', $result);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks to me to be $this->assertEquals('8,950.37', $result);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yeah - what I had locally wasn't properly pushed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok test looks right now

@seamuslee001
Copy link
Contributor

This only affects tests so the only judge that really matters is Jenkins, adding merge on pass

@eileenmcnaughton eileenmcnaughton merged commit 1b81c5d into civicrm:master Aug 20, 2018
@eileenmcnaughton eileenmcnaughton deleted the money_fn branch August 20, 2018 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants