$this->
assertEquals('views_block__test_view_block_block_1',
$views_block->
getMachineNameSuggestion());
} /**
* Tests that ViewsBlock::build() produces the right output with title tokens.
*
* @see \Drupal\views\Plugin\Block::build()
*/
public function testBuildWithTitleToken() { $view = Views::
getView('test_view_block'
);
$view->
setDisplay();
$sorts =
[ 'name' =>
[ 'id' => 'name',
'field' => 'name',
'table' => 'views_test_data',
'plugin_id' => 'standard',
'order' => 'asc',
],
];
// Set the title to the 'name' field in the first row and add a sort order