Skip to content

Commit 15b8f7c

Browse files
committed
Merge branch 'main' of github.com:One-Learning-Community/laravel-model-explorer
2 parents 0057a04 + ef18698 commit 15b8f7c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/Mcp/Support/CompactPresenter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function overview(ModelData $data): array
3636
/**
3737
* @param list<string> $sections
3838
* @param array{kinds?: list<string>, file?: string}|null $membersFilter Narrows the
39-
* `members` section to matching kinds and/or a declaring-file substring (ADR-012).
39+
* `members` section to matching kinds and/or a declaring-file substring (ADR-012).
4040
* @return array<string, mixed>
4141
*/
4242
public function inspect(ModelData $data, array $sections, ?array $membersFilter = null): array

tests/Feature/Mcp/ModelNeighborsToolTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use Laravel\Mcp\Server\McpServiceProvider;
44
use OneLearningCommunity\LaravelModelExplorer\Mcp\ModelExplorerServer;
55
use OneLearningCommunity\LaravelModelExplorer\Mcp\Tools\ModelNeighborsTool;
6+
use Workbench\App\Models\User;
67

78
// McpServiceProvider is excluded from Testbench auto-discovery (ignorePackageDiscoveriesFrom
89
// returns ['*']). Its boot() registers the resolving(Request::class, ...) callback that
@@ -29,7 +30,7 @@ function neighborsStructured(array $arguments): array
2930
it('defaults to the incoming direction, finding every model that points at the root', function () {
3031
$structured = neighborsStructured(['model' => 'User']);
3132

32-
expect($structured['root'])->toBe(\Workbench\App\Models\User::class)
33+
expect($structured['root'])->toBe(User::class)
3334
->and($structured['direction'])->toBe('incoming')
3435
->and(collect($structured['edges'])->pluck('from'))->toContain('Post', 'BasePost', 'ExtendedPost', 'MemberShowcase')
3536
->and(collect($structured['edges'])->every(fn ($e) => $e['direction'] === 'incoming'))->toBeTrue();

0 commit comments

Comments
 (0)