Same name and namespace in other branches
  1. 8.9.x core/modules/migrate/tests/src/Unit/MigrateTestCase.php \Drupal\Tests\migrate\Unit\MigrateTestCase::getValue()
  2. 9 core/modules/migrate/tests/src/Unit/MigrateTestCase.php \Drupal\Tests\migrate\Unit\MigrateTestCase::getValue()

Gets the value on a row for a given key.

Parameters

array $row: The row information.

string $key: The key identifier.

Return value

mixed The value on a row for a given key.

1 call to MigrateTestCase::getValue()
MigrateTestCase::queryResultTest in core/modules/migrate/tests/src/Unit/MigrateTestCase.php
Tests a query.

File

core/modules/migrate/tests/src/Unit/MigrateTestCase.php, line 192

Class

MigrateTestCase
Provides setup and helper methods for Migrate module tests.

Namespace

Drupal\Tests\migrate\Unit

Code

protected function getValue($row, $key) {
  return $row[$key];
}