mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-10-01 01:26:10 -04:00
clarify use of getDeleteToken() method in unit test
This commit is contained in:
parent
af54e70359
commit
ae1e4e3edb
@ -150,7 +150,7 @@ class ModelTest extends PHPUnit_Framework_TestCase
|
|||||||
$statement->closeCursor();
|
$statement->closeCursor();
|
||||||
|
|
||||||
$paste = $model->getPaste(Helper::getPasteId());
|
$paste = $model->getPaste(Helper::getPasteId());
|
||||||
$paste->getDeleteToken();
|
$this->assertNotEmpty($paste->getDeleteToken(), 'excercise the condition to load the data from storage');
|
||||||
$this->assertEquals('plaintext', $paste->get()['meta']['formatter'], 'paste got created with default formatter');
|
$this->assertEquals('plaintext', $paste->get()['meta']['formatter'], 'paste got created with default formatter');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user