2020-01-26 13:19:35 +00:00
|
|
|
<?php declare(strict_types=1);
|
2020-01-28 21:19:59 +00:00
|
|
|
class ArtistsTest extends ShimmiePHPUnitTestCase
|
2019-05-28 17:59:38 +01:00
|
|
|
{
|
|
|
|
public function testSearch()
|
|
|
|
{
|
2020-01-29 20:22:50 +00:00
|
|
|
global $user;
|
|
|
|
$this->log_in_as_user();
|
|
|
|
$image_id = $this->post_image("tests/pbx_screenshot.jpg", "pbx computer screenshot");
|
|
|
|
$image = Image::by_id($image_id);
|
|
|
|
|
|
|
|
send_event(new AuthorSetEvent($image, $user, "bob"));
|
|
|
|
|
|
|
|
$this->assert_search_results(["author=bob"], [$image_id]);
|
2019-05-28 17:59:38 +01:00
|
|
|
}
|
2012-03-11 14:28:18 +00:00
|
|
|
}
|