mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-08-09 15:02:47 -04:00
replaced the term "paste" with the more generic "document"
kudos @Ribas160
This commit is contained in:
parent
634c15a2e8
commit
bde805d2f1
5 changed files with 5 additions and 37 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue