Skip to content

Commit

Permalink
✅ it merges roots
Browse files Browse the repository at this point in the history
Signed-off-by: bnomei <[email protected]>
  • Loading branch information
bnomei committed Mar 21, 2024
1 parent 7a33184 commit a8c66c5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/AutoloaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,20 @@
expect($translations['en']['lang'])->toEqual('English');
expect($translations['jp']['lang'])->toEqual('日本語');
});

it('can merge roots', function() {
$autoloader = autoloader($this->dir)->toArray([
'options' => [
'test' => 'Test',
],
'blueprints' => [
'fields/test' => [ // <-- this must be merged
'type' => 'info',
'text' => 'Test',
],
],
]);

expect($autoloader['blueprints']['pages/isphp'])->toBeArray();
expect($autoloader['blueprints']['fields/test'])->toBeArray();
});

0 comments on commit a8c66c5

Please sign in to comment.