basic tests for page nav

This commit is contained in:
Shish 2020-03-26 21:28:36 +00:00
parent 1f50f14672
commit 36a2125e90

View File

@ -190,4 +190,14 @@ class IndexTest extends ShimmiePHPUnitTestCase
// negative tag alone, should work
$this->assert_search_results(["-pbx"], [$image_ids[1]]);
}
// This isn't really an index thing, we just want to test this from
// SOMEWHERE because the default theme doesn't use them.
public function test_nav()
{
send_event(new UserLoginEvent(User::by_name(self::$user_name)));
send_event(new PageNavBuildingEvent());
send_event(new PageSubNavBuildingEvent("parent"));
$this->assertTrue(true);
}
}