? ? Pending

User tests: Successful: Unsuccessful:

avatar photodude
photodude
4 May 2017

Pull Request for Issue add more === and !== cases to JfilterInput

Summary of Changes

  • more === and !== cases
  • make a few conditionals multiline

Testing Instructions

code review / unit tests pass

Expected result

unit tests pass

Actual result

unit tests pass

Documentation Changes Required

none

avatar photodude photodude - open - 4 May 2017
avatar photodude photodude - change - 4 May 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 May 2017
Category Libraries
avatar photodude photodude - change - 4 May 2017
Title
more === and !== cases
JFilterInput more === and !== cases
avatar photodude photodude - edited - 4 May 2017
avatar photodude photodude - change - 4 May 2017
The description was changed
avatar photodude photodude - edited - 4 May 2017
avatar photodude photodude - change - 4 May 2017
Labels Added: ?
avatar RonakParmar
RonakParmar - comment - 5 May 2017

I have tested this item successfully on ed6ef26

Done code review.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15817.

avatar RonakParmar RonakParmar - test_item - 5 May 2017 - Tested successfully
avatar PhilETaylor
PhilETaylor - comment - 5 May 2017

Expected result = unit tests pass

Are there any Unit tests that specifically fail if this PR is not applied? You should create some tests that fail on == but pass on === for it to be a valid test...

avatar PhilETaylor
PhilETaylor - comment - 5 May 2017

I have tested this item successfully on ed6ef26


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15817.

avatar PhilETaylor PhilETaylor - test_item - 5 May 2017 - Tested successfully
avatar photodude
photodude - comment - 5 May 2017

@PhilETaylor none of the current unit test should fail with this. I'm not sure if there is a good way to write a unit test for this change (I'm not sure if it would even be possible).

Generally, this PR just removes some internal php type juggling on some checks. Following the general php coding practice to always preference === or ==! in checks (with some exceptions where type juggling should be allowed then use == or !=).

avatar photodude
photodude - comment - 5 May 2017

related PR in the framework joomla-framework/filter#23

avatar franz-wohlkoenig franz-wohlkoenig - change - 6 May 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 6 May 2017

RTC after two successful tests.

avatar rdeutz rdeutz - change - 22 May 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-05-22 18:39:00
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 22 May 2017
avatar rdeutz rdeutz - merge - 22 May 2017

Add a Comment

Login with GitHub to post a comment