/**
* Tests the result of a view with base fields and configurable fields.
*/
public function testSimpleExecute() { $executable = Views::
getView('test_field_field_test'
);
$executable->
execute();
$this->
assertInstanceOf(EntityField::
class,
$executable->field
['id'
]);
$this->
assertInstanceOf(EntityField::
class,
$executable->field
['field_test'
]);
$this->
assertIdenticalResultset($executable,
[ ['id' => 1, 'field_test' => 3, 'user_id' => 2
],
['id' => 2, 'field_test' => 0, 'user_id' => 3
],
['id' => 3, 'field_test' => 8, 'user_id' => 4
],
['id' => 4, 'field_test' => 5, 'user_id' => 5
],
['id' => 5, 'field_test' => 6, 'user_id' => 6
],
],
['id' => 'id', 'field_test' => 'field_test', 'user_id' => 'user_id'
] );
}