mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-03-05 13:30:32 -05:00
remove more v1 legacy
- document removed unused columns in database schema of tables `paste` & `comment` - amended misleading comments - nickname is part of the encrypted payload in v2 comments and therefore there is nothing to store separately
This commit is contained in:
@@ -93,7 +93,6 @@ class DatabaseTest extends TestCase
|
||||
|
||||
public function testDatabaseBasedAttachmentStoreWorks()
|
||||
{
|
||||
// this assumes a version 1 formatted paste
|
||||
$this->_model->delete(Helper::getPasteId());
|
||||
$original = $paste = Helper::getPaste(array('expire_date' => 1344803344));
|
||||
$paste['meta']['burnafterreading'] = $original['meta']['burnafterreading'] = true;
|
||||
|
||||
@@ -485,6 +485,6 @@ class ModelTest extends TestCase
|
||||
$vz = new Vizhash16x16();
|
||||
$pngdata = 'data:image/png;base64,' . base64_encode($vz->generate(TrafficLimiter::getHash()));
|
||||
$comment = current($this->_model->getPaste(Helper::getPasteId())->get()['comments']);
|
||||
$this->assertEquals($pngdata, $comment['meta']['icon'], 'nickname triggers vizhash to be set');
|
||||
$this->assertEquals($pngdata, $comment['meta']['icon'], 'vizhash was generated');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user