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