public function DecimalFractionTest::testDecimalFraction in Fraction 8
Same name and namespace in other branches
- 2.x tests/src/Unit/process/DecimalFractionTest.php \Drupal\Tests\fraction\Unit\process\DecimalFractionTest::testDecimalFraction()
Test decimal fraction plugin.
@dataProvider decimalFractionDataProvider
File
- tests/
src/ Unit/ process/ DecimalFractionTest.php, line 29
Class
- DecimalFractionTest
- Tests the decimal fraction process plugin.
Namespace
Drupal\Tests\fraction\Unit\processCode
public function testDecimalFraction($input, $expected_output) {
$output = $this->plugin
->transform($input, $this->migrateExecutable, $this->row, 'destinationproperty');
$this
->assertSame($output['numerator'], $expected_output['numerator']);
$this
->assertSame($output['denominator'], $expected_output['denominator']);
}