/** * @param string $columns * * @Then /^the rows should be sortable by (.*)$/ */ public function theRowsShouldBeSortableBy($columns) { $columns = $this->getMainContext()->listToArray($columns); try { foreach ($columns as $columnName) { $this->datagrid->getColumnSorter($columnName); } } catch (\InvalidArgumentException $e) { throw $this->createExpectationException($e->getMessage()); } }