### Summary

Running `ansible-doc -t test uri` produces
```
ERROR! test ansible.builtin.uri missing documentation (or could not parse documentation): No documentation availalbe for ansible.builtin.uri (/path/to/ansible/lib/ansible/plugins/test/uri.py)
```
It tries to look at `uri.py` instead of `uri.yml` in the same directory.

Listing the tests shows that filter correctly, `--metadata-dump` does not.

This happens both with #78700 and without #78700. #77737 also demonstrates this.

### Issue Type

Bug Report

### Component Name

ansible-doc

### Ansible Version

```console
devel branch
#78700
```


### Configuration

```console
-
```


### OS / Environment

-

### Steps to Reproduce

-

### Expected Results

-

### Actual Results

```console
-
```


### Code of Conduct

- [X] I agree to follow the Ansible Code of Conduct
found = None
    adjacent = Path(path)
    plugin_base_name = plugin.split('.')[-1]
    if adjacent.stem != plugin_base_name:
        
        adjacent = adjacent.with_name(plugin_base_name)
    for ext in extensions:
        candidate = adjacent.with_suffix(ext)
        if candidate.exists():
            found = to_native(candidate)
            break
    return found
def find_plugin_docfile(plugin, plugin_type, loader):
    '''  if the plugin lives in a non-python file (eg, win_X.ps1), require the corresponding 'sidecar' file for docs '''
    context = loader.find_plugin_with_context(plugin, ignore_deprecated=False, check_aliases=True)
    if (not context or not context.resolved) and plugin_type in ('filter', 'test'):
        
        plugin_obj, context = loader.get_with_context(plugin)
    if not context or not context.resolved:
        raise AnsiblePluginNotFound('%s was not found' % (plugin), plugin_load_context=context)
    docfile = Path(context.plugin_resolved_path)
    if docfile.suffix not in C.DOC_EXTENSIONS:
        
        filename = _find_adjacent(docfile, plugin, C.DOC_EXTENSIONS)
    else:
        filename = to_native(docfile)
    if filename is None:
        raise AnsibleError('%s cannot contain DOCUMENTATION nor does it have a companion documentation file' % (plugin))
    return filename, context.plugin_resolved_collection
def get_plugin_docs(plugin, plugin_type, loader, fragment_loader, verbose):