fix unit test

This commit is contained in:
El RIDO 2024-05-01 21:13:24 +02:00
parent 041068b590
commit 5421e8e558
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92

View file

@ -713,7 +713,7 @@ class ControllerTest extends TestCase
$this->assertEquals($paste['adata'][1], $response['adata'][1], 'outputs formatter correctly');
$this->assertEquals($paste['adata'][2], $response['adata'][2], 'outputs opendiscussion correctly');
$this->assertEquals($paste['adata'][3], $response['adata'][3], 'outputs burnafterreading correctly');
$this->assertFalse(array_key_exists('created', $paste['meta']), 'does not output created');
$this->assertFalse(array_key_exists('created', $response['meta']), 'does not output created');
$this->assertEquals(0, $response['comment_count'], 'outputs comment_count correctly');
$this->assertEquals(0, $response['comment_offset'], 'outputs comment_offset correctly');
// by default it will be deleted instantly after it is read