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
@@ -33,6 +33,12 @@ class UserCreateTest extends TestCase {
$this->assertStringContainsString($adminComment, $this->user->staffNotes(), 'user-create-staff-notes');
$this->assertTrue($this->user->isUnconfirmed(), 'user-create-unconfirmed');
$location = "user.php?id={$this->user->id()}";
$this->assertEquals($location, $this->user->location(), 'user-location');
$this->assertEquals(SITE_URL . "/$location", $this->user->publicLocation(), 'user-public-location');
$this->assertEquals($location, $this->user->url(), 'user-url');
$this->assertEquals(SITE_URL . "/$location", $this->user->publicUrl(), 'user-public-url');
$login = new Gazelle\Login;
$watch = new Gazelle\LoginWatch($_SERVER['REMOTE_ADDR']);
$watch->clearAttempts();