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

Reorder arguments in some assertions #9621

Merged
merged 1 commit into from Oct 17, 2016
Merged

Conversation

johanmeiring
Copy link
Contributor

I noticed in the InflectorTest class that the arguments in some of the assertion calls were in the incorrect order. While this obviously doesn't cause failure, it's not semantically correct, and consistency in programming is usually nice. This PR fixes the cases that I found.

@dereuromark dereuromark added this to the 3.3.7 milestone Oct 17, 2016
@dereuromark
Copy link
Member

👍

$this->assertEquals(Inflector::pluralize('sweet_potato'), 'sweet_potatoes');
$this->assertEquals('sweet potatoes', Inflector::pluralize('sweet potato'));
$this->assertEquals('sweet-potatoes', Inflector::pluralize('sweet-potato'));
$this->assertEquals('sweet_potatoes', Inflector::pluralize('sweet_potato'));
Copy link
Member

Choose a reason for hiding this comment

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

Would be nice to also switch to assertSame() here, but no big deal.

@codecov-io
Copy link

codecov-io commented Oct 17, 2016

Current coverage is 94.93% (diff: 100%)

Merging #9621 into master will decrease coverage by <.01%

@@             master      #9621   diff @@
==========================================
  Files           414        414          
  Lines         28471      28471          
  Methods        3404       3404          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits          27032      27030     -2   
- Misses         1439       1441     +2   
  Partials          0          0          

Powered by Codecov. Last update 71a2cf6...9bccdc5

@markstory markstory merged commit 7082e55 into cakephp:master Oct 17, 2016
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.

None yet

4 participants