assertInstanceOf( $expected, $user ); } public function the_resource_provider() { return array( array( 'http://example.org/?author=1', 'Activitypub\Model\User' ), array( 'https://example.org/?author=1', 'Activitypub\Model\User' ), array( 'http://example.org/?author=7', 'WP_Error' ), array( 'acct:admin@example.org', 'Activitypub\Model\User' ), array( 'acct:blog@example.org', 'Activitypub\Model\Blog_User' ), array( 'acct:*@example.org', 'Activitypub\Model\Blog_User' ), array( 'acct:_@example.org', 'Activitypub\Model\Blog_User' ), array( 'acct:aksd@example.org', 'WP_Error' ), array( 'admin@example.org', 'Activitypub\Model\User' ), array( 'acct:application@example.org', 'Activitypub\Model\Application_User' ), array( 'http://example.org/@admin', 'Activitypub\Model\User' ), array( 'http://example.org/@blog', 'Activitypub\Model\Blog_User' ), array( 'https://example.org/@blog', 'Activitypub\Model\Blog_User' ), array( 'http://example.org/@blog/', 'Activitypub\Model\Blog_User' ), array( 'http://example.org/', 'Activitypub\Model\Blog_User' ), array( 'http://example.org', 'Activitypub\Model\Blog_User' ), array( 'https://example.org/', 'Activitypub\Model\Blog_User' ), array( 'https://example.org', 'Activitypub\Model\Blog_User' ), array( 'http://example.org/@blog/s', 'WP_Error' ), array( 'http://example.org/@blogs/', 'WP_Error' ), ); } }