/** * @covers ::belongsTo */ public function testBelongsTo() { $config = new Config('Harp\\Harp\\Test\\TestModel\\City'); $config->belongsTo('country', 'Harp\\Harp\\Test\\TestModel\\Country', ['inverseOf' => 'cities']); $this->assertEquals(new BelongsTo('country', $config, 'Harp\\Harp\\Test\\TestModel\\Country', ['inverseOf' => 'cities']), $config->getRel('country')); }