Checks that hook_entity_operation_alter() can add an operation.
entity_test_entity_operation_alter()
public function testEntityOperationAlter() {
// Check that role listing contain our test_operation operation.
$this
->drupalGet('admin/people/roles');
$roles = user_roles();
foreach ($roles as $role) {
$uri = $role
->uri();
$this
->assertLinkByHref($uri['path'] . '/test_operation');
$this
->assertLink(format_string('Test Operation: @label', array(
'@label' => $role
->label(),
)));
}
}