public function test_has_one_with_order() { Employee::$has_one[0]['order'] = 'title'; $employee = $this->get_relationship(); $this->assert_default_has_one($employee); $this->assert_sql_has('ORDER BY title', Position::table()->last_sql); }
public function testHasOneWithOrder() { Employee::$hasOne[0]['order'] = 'title'; $employee = $this->getRelationship(); $this->assertDefaultHasOne($employee); $this->assertSqlHas('ORDER BY title', Position::table()->lastSql); }