Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Jun 2013 at 00:11 UTC
Updated:
29 Jul 2014 at 22:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jhedstromThis converts
valid_number_step()to a component (Number::validStep()), and moves the unit test to phpunit, with dataproviders.Comment #3
jhedstrom#1: system-validnumber-phpunit-2030173-01.patch queued for re-testing.
Comment #5
jhedstromForgot to add the new Number component file.
Comment #6
ParisLiakos commentedwoo, looks good thanks:)
Comment #7
yesct commentedThis issue was RTBC and passing tests on July 1, the beginning of API freeze.
Comment #8
yesct commentedThis increases phpunit test code coverage from
Comment #9
catch#5: system-validnumber-phpunit-2030173-05.patch queued for re-testing.
Comment #11
jhedstromRe-rolled #5.
Comment #12
dawehnerThat is a really nice test!
Some lines exceed the 80 chars, so lets fix them.
Lets add an empty line here.
Comment #13
jhedstromShould address #12.
Comment #14
dawehnerThank you
Comment #15
alexpottI'm not sure that we should be removing the documentation of the parameters and return value here... we can remove the the details and replace with the @see...
So I think this should look like this...
... I know I committed a patch by @jhedstrom that removed docs like this is the past but I now consider that a mistake...
Comment #16
jhedstromThis adds those params back. The reason I'd been removing them was due to some really large docblocks (not including the params/return), that seemed silly to duplicate on both the deprecated function and the new component method.
Comment #17
ParisLiakos commentedoh everyone forgot this issue i guess:P
Comment #18
jhedstromRe-roll of #16.
Comment #19
ParisLiakos commented$expected should be the first argument
Comment #20
jhedstromFlipped the argument order as per #19.
Comment #21
ParisLiakos commentedty
Comment #22
catchCommitted/pushed to 8.x, thanks!
Comment #24
jhedstrom