|
25 | 25 | ); |
26 | 26 |
|
27 | 27 | // Assert that we get the keys, not the values |
28 | | - expect($result)->toBeArray(); |
29 | | - expect($result)->toHaveCount(2, 'Should have 2 items selected'); |
30 | | - expect($result)->toContain('mcp_server'); |
31 | | - expect($result)->toContain('ai_guidelines'); |
32 | | - expect($result)->not->toContain('Boost MCP Server'); |
33 | | - expect($result)->not->toContain('Package AI Guidelines'); |
| 28 | + expect($result)->toBeArray() |
| 29 | + ->toHaveCount(2, 'Should have 2 items selected') |
| 30 | + ->toContain('mcp_server') |
| 31 | + ->toContain('ai_guidelines') |
| 32 | + ->not->toContain('Boost MCP Server') |
| 33 | + ->not->toContain('Package AI Guidelines'); |
34 | 34 | })->skipOnWindows(); |
35 | 35 |
|
36 | 36 | test('multiselect returns values for indexed array', function (): void { |
|
48 | 48 | ); |
49 | 49 |
|
50 | 50 | // For indexed arrays, it returns the actual values |
51 | | - expect($result)->toBeArray(); |
52 | | - expect($result)->toContain('Option 1'); |
53 | | - expect($result)->toContain('Option 2'); |
| 51 | + expect($result)->toBeArray() |
| 52 | + ->toContain('Option 1') |
| 53 | + ->toContain('Option 2'); |
54 | 54 | })->skipOnWindows(); |
55 | 55 |
|
56 | 56 | test('multiselect behavior matches install command expectations', function (): void { |
|
79 | 79 |
|
80 | 80 | // Verify we get keys that can be used with in_array checks |
81 | 81 | expect($result)->toBeArray() |
82 | | - ->and($result)->toHaveCount(3) |
83 | | - ->and($result)->toContain('mcp_server') |
84 | | - ->and($result)->toContain('ai_guidelines') |
85 | | - ->and($result)->toContain('style_guidelines') |
86 | | - ->and($result)->not->toContain('Boost MCP Server') |
87 | | - ->and($result)->not->toContain('Package AI Guidelines (i.e. Framework, Inertia, Pest)'); |
| 82 | + ->toHaveCount(3) |
| 83 | + ->toContain('mcp_server') |
| 84 | + ->toContain('ai_guidelines') |
| 85 | + ->toContain('style_guidelines') |
| 86 | + ->not->toContain('Boost MCP Server') |
| 87 | + ->not->toContain('Package AI Guidelines (i.e. Framework, Inertia, Pest)'); |
88 | 88 | })->skipOnWindows(); |
0 commit comments