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