make it easier to build urls with parameters

This commit is contained in:
Spine
2023-04-04 19:10:32 +02:00
parent 3dae28f662
commit bf9ffdd4f3
14 changed files with 43 additions and 13 deletions
+6
View File
@@ -24,6 +24,12 @@ class StaffBlogTest extends TestCase {
$this->assertIsString($blog->created(), 'staff-blog-created');
$this->assertIsInt($blog->epoch(), 'staff-blog-epoch');
$location = 'staffblog.php#blog' . $blog->id();
$this->assertEquals($location, $blog->location(), 'staff-blog-location');
$this->assertEquals(SITE_URL . "/$location", $blog->publicLocation(), 'staff-blog-public-location');
$this->assertEquals($location, $blog->url(), 'staff-blog-url');
$this->assertEquals(SITE_URL . "/$location", $blog->publicUrl(), 'staff-blog-public-url');
$this->assertEquals(0, $manager->readBy($mod), 'staff-blog-not-read-by-mod');
$this->assertGreaterThan(0, $manager->catchup($mod), 'staff-blog-viewed-by-mod');
$this->assertGreaterThan(0, $manager->readBy($mod), 'staff-blog-now-read-by-mod');