public function FieldRawValueTest::testRawValues in Twig Field Value 8
Same name and namespace in other branches
- 2.0.x tests/src/Unit/FieldValue/FieldRawValueTest.php \Drupal\Tests\twig_field_value\Unit\FieldValue\FieldRawValueTest::testRawValues()
Asserts the twig field_raw filter.
@dataProvider providerTestRawValues @covers ::getRawValues
Parameters
$expected_result:
$render_array:
$key:
File
- tests/
src/ Unit/ FieldValue/ FieldRawValueTest.php, line 57
Class
- FieldRawValueTest
- @coversDefaultClass \Drupal\twig_field_value\Twig\Extension\FieldValueExtension @group twig_field_value
Namespace
Drupal\Tests\twig_field_value\Unit\FieldValueCode
public function testRawValues($expected_result, $render_array, $key) {
$result = $this->extension
->getRawValues($render_array, $key);
$this
->assertSame($expected_result, $result);
}