callShortUrl('custom/qr-code'); self::assertEquals(200, $response->getStatusCode()); // This short URL allow max 2 visits $this->callShortUrl('custom'); $this->callShortUrl('custom'); // After 2 visits, the short URL returns a 404, but the QR code should still work self::assertEquals(404, $this->callShortUrl('custom')->getStatusCode()); self::assertEquals(200, $this->callShortUrl('custom/qr-code')->getStatusCode()); } }