replaced the term "paste" with the more generic "document"

kudos @Ribas160
This commit is contained in:
El RIDO 2025-07-25 08:15:02 +02:00
parent 634c15a2e8
commit bde805d2f1
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
5 changed files with 5 additions and 37 deletions

View file

@ -366,19 +366,6 @@ class ModelTest extends TestCase
$this->assertEquals((float) 300, (float) $paste['meta']['time_to_live'], 'remaining time is set correctly', 1.0);
}
public function testCommentDeletion()
{
$pasteData = Helper::getPastePost();
$this->_model->getPaste(Helper::getPasteId())->delete();
$paste = $this->_model->getPaste();
$paste->setData($pasteData);
$paste->store();
$this->expectException(Exception::class);
$this->expectExceptionCode(64);
$paste->getComment(Helper::getPasteId())->delete();
}
public function testPurge()
{
$conf = new Configuration;