public function testOrderByUndefinedColumn() { $this->setExpectedException('Nette\\InvalidArgumentException'); $this->table->setDataSource($this->dataSource); $this->table->setOrder('undefined', Table::ORDER_DESC); }