mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-23 22:34:47 -04:00
pass by reference, closes #858
This commit is contained in:
+2
-1
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user