This commit is contained in:
Shish 2024-01-16 11:05:10 +00:00
parent 8e5c64e834
commit 5a9e6f2638

View file

@ -18,7 +18,7 @@ class LinkScanTest extends ShimmiePHPUnitTestCase
http://example.com/post/view/{$image_id_2} is another one
";
send_event(new AdminActionEvent("link_scan"));
$this->assertEquals(PageMode::REDIRECT, $page->mode);
$this->assertEquals("/test/post/list/id%3D{$image_id_1}%2C{$image_id_2}/1", $page->redirect);
}
@ -33,7 +33,7 @@ class LinkScanTest extends ShimmiePHPUnitTestCase
Look at http://example.com/_images/feb01bab5698a11dd87416724c7a89e3/foobar.jpg
there is an image or search for e106ea2983e1b77f11e00c0c54e53805";
send_event(new AdminActionEvent("link_scan"));
$this->assertEquals(PageMode::REDIRECT, $page->mode);
$this->assertEquals("/test/post/list/id%3D{$image_id_1}%2C{$image_id_2}/1", $page->redirect);
}