public function NumberTest::testValidStep in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Component/Utility/NumberTest.php \Drupal\Tests\Component\Utility\NumberTest::testValidStep()
Tests Number::validStep() without offset.
@dataProvider providerTestValidStep @covers ::validStep
Parameters
numeric $value: The value argument for Number::validStep().
numeric $step: The step argument for Number::validStep().
bool $expected: Expected return value from Number::validStep().
File
- core/
tests/ Drupal/ Tests/ Component/ Utility/ NumberTest.php, line 37 - Contains \Drupal\Tests\Component\Utility\NumberTest.
Class
- NumberTest
- Tests number manipulation utilities.
Namespace
Drupal\Tests\Component\UtilityCode
public function testValidStep($value, $step, $expected) {
$return = Number::validStep($value, $step);
$this
->assertEquals($expected, $return);
}