diff --git a/core/modules/views/src/Plugin/views/field/Field.php b/core/modules/views/src/Plugin/views/field/Field.php index d9e905a..90b204d 100644 --- a/core/modules/views/src/Plugin/views/field/Field.php +++ b/core/modules/views/src/Plugin/views/field/Field.php @@ -693,8 +693,8 @@ public function renderItems($items) { /** * Adapts the $items according to the delta configuration. * - * Therefore this method filters out limits the items, reorders the items - * as well as takes into account an offset. + * The method filters limits the shown deltas, reorders the items as well as + * takens into account an offset. * * @param array $all_values * The items for individual rendering. diff --git a/core/modules/views/src/Tests/Handler/FieldFieldTest.php b/core/modules/views/src/Tests/Handler/FieldFieldTest.php index ed5756a..2297871 100644 --- a/core/modules/views/src/Tests/Handler/FieldFieldTest.php +++ b/core/modules/views/src/Tests/Handler/FieldFieldTest.php @@ -351,7 +351,7 @@ public function testRevisionExecute() { } /** - * Tests the output of a revision view with base fields and configurable fields. + * Tests the output of a revision view with base and configurable fields. */ public function testRevisionRender() { $executable = Views::getView('test_field_field_revision_test'); diff --git a/core/modules/views/src/Tests/ViewResultAssertionTrait.php b/core/modules/views/src/Tests/ViewResultAssertionTrait.php index ed10ce2..8ba6907 100644 --- a/core/modules/views/src/Tests/ViewResultAssertionTrait.php +++ b/core/modules/views/src/Tests/ViewResultAssertionTrait.php @@ -112,7 +112,7 @@ protected function assertIdenticalResultsetHelper($view, $expected_result, $colu if (is_object($value)) { $row[$expected_column] = (string) $value->$expected_column; } - // This case is about fields with mulitple values. + // This case is about fields with multiple values. elseif (is_array($value[$expected_column])) { foreach (array_keys($value[$expected_column]) as $delta) { $row[$expected_column][$delta] = (string) $value[$expected_column][$delta]; diff --git a/core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php b/core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php index 0341859..54bd3a4 100644 --- a/core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php +++ b/core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php @@ -611,6 +611,9 @@ public function testPrepareItemsByDelta(array $options, array $expected_values) $this->assertEquals($expected_values, $handler->executePrepareItemsByDelta($items)); } + /** + * Provides test data for testPrepareItemsByDelta(). + */ public function providerTestPrepareItemsByDelta() { $data = [];