2022-12-09 11:59:24 +01:00
|
|
|
<?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' );
|
2022-12-09 12:02:55 +01:00
|
|
|
$this->assertEquals( 'https://notiz.blog/author/matthias-pfefferle/', $metadata['url'] );
|
|
|
|
$this->assertEquals( 'pfefferle', $metadata['preferredUsername'] );
|
|
|
|
$this->assertEquals( 'Matthias Pfefferle', $metadata['name'] );
|
2022-12-13 11:09:45 +01:00
|
|
|
}
|
2022-12-09 11:59:24 +01:00
|
|
|
}
|