mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-08-08 22:42:29 -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
|
@ -671,7 +671,7 @@ class ControllerTest extends TestCase
|
|||
ob_end_clean();
|
||||
$response = json_decode($content, true);
|
||||
$this->assertEquals(1, $response['status'], 'outputs error status');
|
||||
$this->assertEquals('Invalid paste ID.', $response['message'], 'outputs error message');
|
||||
$this->assertEquals('Invalid document ID.', $response['message'], 'outputs error message');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -825,7 +825,7 @@ class ControllerTest extends TestCase
|
|||
$content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
$this->assertMatchesRegularExpression(
|
||||
'#<div[^>]*id="errormessage"[^>]*>.*Invalid paste ID\.#s',
|
||||
'#<div[^>]*id="errormessage"[^>]*>.*Invalid document ID\.#s',
|
||||
$content,
|
||||
'outputs delete error correctly'
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue