From 7ef6cdb7eedbc833af578ffba03edff549c5fa60 Mon Sep 17 00:00:00 2001 From: Alex Kirk Date: Tue, 13 Dec 2022 11:02:14 +0100 Subject: [PATCH] Add a leading at test --- tests/test-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-functions.php b/tests/test-functions.php index 154390c..9f4f3cc 100644 --- a/tests/test-functions.php +++ b/tests/test-functions.php @@ -14,7 +14,7 @@ class Test_Functions extends ActivityPub_TestCase_Cache_HTTP { foreach ( array( 'user', 'test' ) as $username ) { foreach ( array( 'example.org', 'example.net', 'example2.com' ) as $domain ) { foreach ( array( '@', '' ) as $leading_at ) { - $metadata = \ActivityPub\get_remote_metadata_by_actor( $username . '@' . $domain ); + $metadata = \ActivityPub\get_remote_metadata_by_actor( $leading_at . $username . '@' . $domain ); $this->assertEquals( sprintf( 'https://%s/users/%s/', $domain, $username ), $metadata['url'], $username . '@' . $domain ); $this->assertEquals( $username, $metadata['name'], $username . '@' . $domain ); }