public function test_can_construct_one_to_one_relationship() { $object = new PodioObject(); $object->has_one('field', 'Object'); $object->init(array('field' => array('id' => 1))); $this->assertInstanceOf('PodioObject', $object->field); }