pass by reference, closes #858

This commit is contained in:
El RIDO
2025-03-11 07:59:10 +01:00
parent e67972417e
commit 629f263cf5
12 changed files with 37 additions and 35 deletions
+2 -1
View File
@@ -163,7 +163,8 @@ class ModelTest extends TestCase
$this->_conf->getSection('model_options')
)
);
$comment->setPaste($this->_model->getPaste(Helper::getPasteId()));
$paste = $this->_model->getPaste(Helper::getPasteId());
$comment->setPaste($paste);
$this->assertEquals(Helper::getPasteId(), $comment->getParentId(), 'comment parent ID gets initialized to paste ID');
}