HEX
Server: Apache
System: Linux webm013.cluster123.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: lesanew (165608)
PHP: 8.3.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/lesanew/anestetues2/vendor/roots/acorn/tests/Assets/AssetsServiceProviderTest.php
<?php

use Roots\Acorn\Assets\Contracts\Manifest as ManifestContract;
use Roots\Acorn\Assets\Manager;
use Roots\Acorn\Tests\Test\TestCase;

use function Spatie\Snapshots\assertMatchesSnapshot;

uses(TestCase::class);

it('registers an asset manager', function () {
    $app = new \Roots\Acorn\Application;
    $app->singleton('config', fn () => new \Illuminate\Config\Repository);
    $app->register(\Roots\Acorn\Assets\AssetsServiceProvider::class);

    expect($app->make('assets'))->toBeInstanceOf(Manager::class);
});

it('registers a default manifest', function () {
    $app = new \Roots\Acorn\Application;
    $app->singleton('config', fn () => new \Illuminate\Config\Repository([
        'assets' => [
            'default' => 'app',
            'manifests' => [
                'app' => [
                    'path' => $this->fixture('bud_single_runtime/public/app'),
                    'url' => 'https://k.jo/app',
                    'assets' => $this->fixture('bud_multi_compiler/public/app/manifest.json'),
                    'bundles' => $this->fixture('bud_multi_compiler/public/app/entrypoints.json'),
                ],
            ],
        ],
    ]));
    $app->register(\Roots\Acorn\Assets\AssetsServiceProvider::class);

    expect($app->make('assets.manifest'))->toBeInstanceOf(ManifestContract::class);
    assertMatchesSnapshot($app->make('assets.manifest')->asset('app.js')->uri());
});