remove test prefix from test method names

pull/5908/head
Daniel Simon 8 months ago
parent f39bfcfa1d
commit 92f615d469

@ -28,25 +28,25 @@ class APAnnounceStrategyTest extends TestCase
}
#[Test]
public function testBasicValidation()
public function basicValidation()
{
$this->assertFalse(Helpers::validateObject($this->invalid));
}
#[Test]
public function testMastodonValidation()
public function mastodonValidation()
{
$this->assertTrue(Helpers::validateObject($this->mastodon));
}
#[Test]
public function testPleromaValidation()
public function pleromaValidation()
{
$this->assertTrue(Helpers::validateObject($this->pleroma));
}
#[Test]
public function testMastodonAudienceScope()
public function mastodonAudienceScope()
{
$scope = Helpers::normalizeAudience($this->mastodon, false);
$actual = [
@ -62,7 +62,7 @@ class APAnnounceStrategyTest extends TestCase
}
#[Test]
public function testPleromaAudienceScope()
public function pleromaAudienceScope()
{
$scope = Helpers::normalizeAudience($this->pleroma, false);
$actual = [
@ -78,7 +78,7 @@ class APAnnounceStrategyTest extends TestCase
}
#[Test]
public function testInvalidAudienceScope()
public function invalidAudienceScope()
{
$scope = Helpers::normalizeAudience($this->invalid, false);
$actual = [

@ -30,25 +30,25 @@ class AudienceScopeTest extends TestCase
}
#[Test]
public function testBasicValidation()
public function basicValidation()
{
$this->assertFalse(Helpers::validateObject($this->invalid));
}
#[Test]
public function testMastodonValidation()
public function mastodonValidation()
{
$this->assertTrue(Helpers::validateObject($this->mastodon));
}
#[Test]
public function testPleromaValidation()
public function pleromaValidation()
{
$this->assertTrue(Helpers::validateObject($this->pleroma));
}
#[Test]
public function testMastodonAudienceScope()
public function mastodonAudienceScope()
{
$scope = Helpers::normalizeAudience($this->mastodon, false);
$actual = [
@ -64,7 +64,7 @@ class AudienceScopeTest extends TestCase
}
#[Test]
public function testPleromaAudienceScope()
public function pleromaAudienceScope()
{
$scope = Helpers::normalizeAudience($this->pleroma, false);
$actual = [
@ -80,7 +80,7 @@ class AudienceScopeTest extends TestCase
}
#[Test]
public function testInvalidAudienceScope()
public function invalidAudienceScope()
{
$scope = Helpers::normalizeAudience($this->invalid, false);
$actual = [

@ -30,28 +30,28 @@ class NoteAttachmentTest extends TestCase
}
#[Test]
public function testPixelfed()
public function pixelfed()
{
$valid = Helpers::verifyAttachments($this->pixelfed);
$this->assertTrue($valid);
}
#[Test]
public function testMastodon()
public function mastodon()
{
$valid = Helpers::verifyAttachments($this->mastodon);
$this->assertTrue($valid);
}
#[Test]
public function testInvalidAttachmentType()
public function invalidAttachmentType()
{
$valid = Helpers::verifyAttachments($this->invalidType);
$this->assertFalse($valid);
}
#[Test]
public function testInvalidMimeType()
public function invalidMimeType()
{
$valid = Helpers::verifyAttachments($this->invalidMime);
$this->assertFalse($valid);

@ -11,7 +11,7 @@ class ActivityPubTagObjectTest extends TestCase
* A basic unit test example.
*/
#[Test]
public function test_gotosocial(): void
public function gotosocial(): void
{
$res = [
"tag" => [
@ -36,7 +36,7 @@ class ActivityPubTagObjectTest extends TestCase
}
#[Test]
public function test_pixelfed_hashtags(): void
public function pixelfed_hashtags(): void
{
$res = [
"tag" => [
@ -98,7 +98,7 @@ class ActivityPubTagObjectTest extends TestCase
}
#[Test]
public function test_pixelfed_mentions(): void
public function pixelfed_mentions(): void
{
$res = [
"tag" => [

@ -14,13 +14,13 @@ class CryptoTest extends TestCase
* @return void
*/
#[Test]
public function testLibraryInstalled()
public function libraryInstalled()
{
$this->assertTrue(class_exists('\phpseclib\Crypt\RSA'));
}
#[Test]
public function testRSASigning()
public function RSASigning()
{
$rsa = new RSA();
extract($rsa->createKey());

@ -23,7 +23,7 @@ class StatusLexerTest extends TestCase
}
#[Test]
public function testLexerExtractor()
public function lexerExtractor()
{
$expected = [
'hashtags' => [
@ -59,7 +59,7 @@ class StatusLexerTest extends TestCase
}
#[Test]
public function testAutolink()
public function autolink()
{
$expected = '<a class="u-url mention" href="https://pixelfed.dev/pixelfed" rel="external nofollow noopener" target="_blank">@pixelfed</a> hi, really like the website! <a href="https://pixelfed.dev/discover/tags/píxelfed?src=hash" title="#píxelfed" class="u-url hashtag" rel="external nofollow noopener">#píxelfed</a>';
$this->assertEquals($this->autolink, $expected);

Loading…
Cancel
Save