mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 23:33:13 +08:00
Create DeleteShortUrlVisitsCommand
This commit is contained in:
@@ -320,27 +320,6 @@ class CreateShortUrlTest extends ApiTestCase
|
||||
yield 'example domain' => ['example.com'];
|
||||
}
|
||||
|
||||
#[Test, DataProvider('provideTwitterUrls')]
|
||||
public function urlsWithBotProtectionCanBeShortenedWithUrlValidationEnabled(string $longUrl): void
|
||||
{
|
||||
// Requests to Twitter are randomly failing from GitHub actions. Let's skip this test there.
|
||||
// This is a deprecated and low-used feature anyway.
|
||||
if (env('CI', false)) {
|
||||
$this->markTestSkipped();
|
||||
}
|
||||
|
||||
[$statusCode] = $this->createShortUrl(['longUrl' => $longUrl, 'validateUrl' => true]);
|
||||
self::assertEquals(self::STATUS_OK, $statusCode);
|
||||
}
|
||||
|
||||
public static function provideTwitterUrls(): iterable
|
||||
{
|
||||
yield ['https://twitter.com/shlinkio'];
|
||||
yield ['https://mobile.twitter.com/shlinkio'];
|
||||
yield ['https://twitter.com/shlinkio/status/1360637738421268481'];
|
||||
yield ['https://mobile.twitter.com/shlinkio/status/1360637738421268481'];
|
||||
}
|
||||
|
||||
#[Test]
|
||||
public function canCreateShortUrlsWithEmojis(): void
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user