/** * @expectedException \Thru\ActiveRecord\DatabaseLayer\Exception * @expectedExceptionMessage Bad ORDER direction: invalid */ public function testSearchWithInvalidOrder() { TestModelSortable::search()->order("test_model_id", "invalid")->exec(); }