@@ -585,14 +585,14 @@ public function testClasslessComponentsWithAnonymousComponentPath()
585
585
$ blade = m::mock (BladeCompiler::class)->makePartial ();
586
586
587
587
$ blade ->shouldReceive ('getAnonymousComponentPaths ' )->once ()->andReturn ([
588
- ' test-directory ' ,
588
+ [ ' path ' => ' test-directory ', ' prefix ' => null , ' prefixHash ' => md5 ( ' test-directory ' )] ,
589
589
]);
590
590
591
591
$ compiler = $ this ->compiler ([], [], $ blade );
592
592
593
593
$ result = $ compiler ->compileTags ('<x-panel /> ' );
594
594
595
- $ this ->assertSame ("##BEGIN-COMPONENT-CLASS##@component('Illuminate\View\AnonymousComponent', 'panel', ['view' => '8ee975052836fdc7da2267cf8a580b80 ::panel.index','data' => []])
595
+ $ this ->assertSame ("##BEGIN-COMPONENT-CLASS##@component('Illuminate\View\AnonymousComponent', 'panel', ['view' => ' " . md5 ( ' test-directory ' ). " ::panel.index','data' => []])
596
596
<?php if (isset( \$attributes) && \$attributes instanceof Illuminate\View\ComponentAttributeBag && \$constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
597
597
<?php \$attributes = \$attributes->except(collect( \$constructor->getParameters())->map->getName()->all()); ?>
598
598
<?php endif; ?>
@@ -618,14 +618,14 @@ public function testClasslessIndexComponentsWithAnonymousComponentPath()
618
618
$ blade = m::mock (BladeCompiler::class)->makePartial ();
619
619
620
620
$ blade ->shouldReceive ('getAnonymousComponentPaths ' )->once ()->andReturn ([
621
- ' test-directory ' ,
621
+ [ ' path ' => ' test-directory ', ' prefix ' => null , ' prefixHash ' => md5 ( ' test-directory ' )] ,
622
622
]);
623
623
624
624
$ compiler = $ this ->compiler ([], [], $ blade );
625
625
626
626
$ result = $ compiler ->compileTags ('<x-panel /> ' );
627
627
628
- $ this ->assertSame ("##BEGIN-COMPONENT-CLASS##@component('Illuminate\View\AnonymousComponent', 'panel', ['view' => '8ee975052836fdc7da2267cf8a580b80 ::panel','data' => []])
628
+ $ this ->assertSame ("##BEGIN-COMPONENT-CLASS##@component('Illuminate\View\AnonymousComponent', 'panel', ['view' => ' " . md5 ( ' test-directory ' ). " ::panel','data' => []])
629
629
<?php if (isset( \$attributes) && \$attributes instanceof Illuminate\View\ComponentAttributeBag && \$constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
630
630
<?php \$attributes = \$attributes->except(collect( \$constructor->getParameters())->map->getName()->all()); ?>
631
631
<?php endif; ?>
0 commit comments