wordpress-activitypub/tests/test-functions.php
2023-01-27 15:48:29 +01:00

9 lines
440 B
PHP

<?php
class Test_Functions extends ActivityPub_TestCase_Cache_HTTP {
public function test_get_remote_metadata_by_actor() {
$metadata = \ActivityPub\get_remote_metadata_by_actor( 'pfefferle@notiz.blog' );
$this->assertEquals( 'https://notiz.blog/author/matthias-pfefferle/', $metadata['url'] );
$this->assertEquals( 'pfefferle', $metadata['preferredUsername'] );
$this->assertEquals( 'Matthias Pfefferle', $metadata['name'] );
}
}