$this->
assertIdenticalResultset($view,
[],
['name' => 'name'
]);
} /**
* Tests the list of states in the filter plugin.
*/
public function testStateFilterStatesList() { // By default a view of nodes will not have states to filter.
$workflow = Workflow::
load('editorial'
);
$workflow->
getTypePlugin()->
removeEntityTypeAndBundle('node', 'example'
);
$workflow->
save();
$this->
assertPluginStates([]);
// Adding a content type to the editorial workflow will enable all of the
// editorial states.
$workflow->
getTypePlugin()->
addEntityTypeAndBundle('node', 'example'
);
$workflow->
save();
$this->
assertPluginStates([ 'Editorial' =>
[ 'editorial-draft' => 'Draft',
'editorial-published' => 'Published',
'editorial-archived' => 'Archived',
],
]);