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

@ -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'
);