public static $testViews =
['test_filter_permission'
];
protected $columnMap;
/**
* Tests the permission filter handler.
*
* @todo Fix the different commented out tests by fixing the many to one
* handler handling with the NOT operator.
*/
public function testFilterPermission() { $this->
setupPermissionTestData();
$column_map =
['uid' => 'uid'
];
$view = Views::
getView('test_filter_permission'
);
// Filter by a non existing permission.
$view->
initHandlers();
$view->filter
['permission'
]->value =
['non_existent_permission'
];
$this->
executeView($view);
$this->
assertCount(4,
$view->result, 'A non existent permission is not filtered so everything is the result.'
);
$expected[] =
['uid' => 1
];
$expected[] =
['uid' => 2
];