@@ -598,22 +598,22 @@ public function testClasslessComponentsWithAnonymousComponentPath()
598598 $ app ->shouldReceive ('getNamespace ' )->once ()->andReturn ('App \\' );
599599
600600 $ factory ->shouldReceive ('exists ' )->andReturnUsing (function ($ arg ) {
601- return $ arg === md5 ( 'test-directory ' ).'::panel.index ' ;
601+ return $ arg === hash ( ' xxh128 ' , 'test-directory ' ).'::panel.index ' ;
602602 });
603603
604604 Container::setInstance ($ container );
605605
606606 $ blade = m::mock (BladeCompiler::class)->makePartial ();
607607
608608 $ blade ->shouldReceive ('getAnonymousComponentPaths ' )->once ()->andReturn ([
609- ['path ' => 'test-directory ' , 'prefix ' => null , 'prefixHash ' => md5 ( 'test-directory ' )],
609+ ['path ' => 'test-directory ' , 'prefix ' => null , 'prefixHash ' => hash ( ' xxh128 ' , 'test-directory ' )],
610610 ]);
611611
612612 $ compiler = $ this ->compiler ([], [], $ blade );
613613
614614 $ result = $ compiler ->compileTags ('<x-panel /> ' );
615615
616- $ this ->assertSame ("##BEGIN-COMPONENT-CLASS##@component('Illuminate\View\AnonymousComponent', 'panel', ['view' => ' " .md5 ( 'test-directory ' )."::panel.index','data' => []])
616+ $ this ->assertSame ("##BEGIN-COMPONENT-CLASS##@component('Illuminate\View\AnonymousComponent', 'panel', ['view' => ' " .hash ( ' xxh128 ' , 'test-directory ' )."::panel.index','data' => []])
617617<?php if (isset( \$attributes) && \$attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
618618<?php \$attributes = \$attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
619619<?php endif; ?>
@@ -631,22 +631,22 @@ public function testClasslessIndexComponentsWithAnonymousComponentPath()
631631 $ app ->shouldReceive ('getNamespace ' )->once ()->andReturn ('App \\' );
632632
633633 $ factory ->shouldReceive ('exists ' )->andReturnUsing (function ($ arg ) {
634- return $ arg === md5 ( 'test-directory ' ).'::panel ' ;
634+ return $ arg === hash ( ' xxh128 ' , 'test-directory ' ).'::panel ' ;
635635 });
636636
637637 Container::setInstance ($ container );
638638
639639 $ blade = m::mock (BladeCompiler::class)->makePartial ();
640640
641641 $ blade ->shouldReceive ('getAnonymousComponentPaths ' )->once ()->andReturn ([
642- ['path ' => 'test-directory ' , 'prefix ' => null , 'prefixHash ' => md5 ( 'test-directory ' )],
642+ ['path ' => 'test-directory ' , 'prefix ' => null , 'prefixHash ' => hash ( ' xxh128 ' , 'test-directory ' )],
643643 ]);
644644
645645 $ compiler = $ this ->compiler ([], [], $ blade );
646646
647647 $ result = $ compiler ->compileTags ('<x-panel /> ' );
648648
649- $ this ->assertSame ("##BEGIN-COMPONENT-CLASS##@component('Illuminate\View\AnonymousComponent', 'panel', ['view' => ' " .md5 ( 'test-directory ' )."::panel','data' => []])
649+ $ this ->assertSame ("##BEGIN-COMPONENT-CLASS##@component('Illuminate\View\AnonymousComponent', 'panel', ['view' => ' " .hash ( ' xxh128 ' , 'test-directory ' )."::panel','data' => []])
650650<?php if (isset( \$attributes) && \$attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
651651<?php \$attributes = \$attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
652652<?php endif; ?>
0 commit comments