19 lines
428 B
PHP
19 lines
428 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace Shimmie2;
|
||
|
|
||
|
require_once "core/imageboard/image.php";
|
||
|
|
||
|
class ImageTest extends ShimmiePHPUnitTestCase
|
||
|
{
|
||
|
public function testLoadData(): void
|
||
|
{
|
||
|
$this->log_in_as_user();
|
||
|
$image_id_1 = $this->post_image("tests/pbx_screenshot.jpg", "question? colon:thing exclamation!");
|
||
|
$image = Image::by_id($image_id_1);
|
||
|
$this->assertNull($image->source);
|
||
|
}
|
||
|
}
|