Fixed test issues

This commit is contained in:
Jan Böhmer 2023-10-08 21:54:51 +02:00
parent 3c5a96ba5c
commit 1becde537b
2 changed files with 3 additions and 4 deletions

View file

@ -30,9 +30,8 @@ class ColumnSortHelper
{ {
private array $columns = []; private array $columns = [];
public function __construct(LoggerInterface $logger) public function __construct(private readonly LoggerInterface $logger)
{ {
$this->logger = $logger;
} }
/** /**
@ -111,7 +110,7 @@ class ColumnSortHelper
//and the remaining non-visible columns //and the remaining non-visible columns
foreach ($this->columns as $col_id => $col_data) { foreach ($this->columns as $col_id => $col_data) {
if (in_array($col_id, $processed_columns)) { if (in_array($col_id, $processed_columns, true)) {
// column already processed // column already processed
continue; continue;
} }

View file

@ -255,7 +255,7 @@ final class PartsDataTable implements DataTableTypeInterface
"TABLE_PARTS_DEFAULT_COLUMNS"); "TABLE_PARTS_DEFAULT_COLUMNS");
$dataTable->addOrderBy('name') $dataTable->addOrderBy('name')
->createAdapter(TwoStepORMAdapater::class, [ ->createAdapter(TwoStepORMAdapter::class, [
'filter_query' => $this->getFilterQuery(...), 'filter_query' => $this->getFilterQuery(...),
'detail_query' => $this->getDetailQuery(...), 'detail_query' => $this->getDetailQuery(...),
'entity' => Part::class, 'entity' => Part::class,