// Check whether formatter weights are respected.
$result = $this->xpath('//select[@id=:id]/option', [':id' => 'edit-fields-field-test-type']);
- $options = array_map(function($item) {
+ $options = array_map(function ($item) {
return (string) $item->attributes()->value[0];
}, $result);
$expected_options = [
// Check whether widget weights are respected.
$result = $this->xpath('//select[@id=:id]/option', [':id' => 'edit-fields-field-test-type']);
- $options = array_map(function($item) {
+ $options = array_map(function ($item) {
return (string) $item->attributes()->value[0];
}, $result);
$expected_options = [
/**
* Asserts that a string is found in the rendered node in a view mode.
*
- * @param EntityInterface $node
+ * @param \Drupal\Core\Entity\EntityInterface $node
* The node.
* @param $view_mode
* The view mode in which the node should be displayed.
/**
* Asserts that a string is not found in the rendered node in a view mode.
*
- * @param EntityInterface $node
+ * @param \Drupal\Core\Entity\EntityInterface $node
* The node.
* @param $view_mode
* The view mode in which the node should be displayed.
* This helper function is used by assertNodeViewText() and
* assertNodeViewNoText().
*
- * @param EntityInterface $node
+ * @param \Drupal\Core\Entity\EntityInterface $node
* The node.
* @param $view_mode
* The view mode in which the node should be displayed.