From 886b884bd6ea4f1d86e0edc42a05387f104fdbb6 Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 3 Jan 2024 12:02:39 +0000 Subject: [PATCH] [image_view_counter] give post a view so it isn't null --- ext/image_view_counter/test.php | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/image_view_counter/test.php b/ext/image_view_counter/test.php index 1722d1c5..fc6e1c84 100644 --- a/ext/image_view_counter/test.php +++ b/ext/image_view_counter/test.php @@ -17,6 +17,7 @@ class ImageViewCounterTest extends ShimmiePHPUnitTestCase public function testPopular() { $image_id = $this->post_image("tests/pbx_screenshot.jpg", "pbx computer screenshot"); + $this->get_page("post/view/$image_id"); $this->get_page("popular_images"); $this->assert_text("$image_id"); }