<?php

namespace Mtc\Plugins\BlockManager\Tests\Feature;

use Tests\TestCase;

class LoaderDiscoveryTest extends TestCase
{
    public function test_loader_marker_is_registered_in_container(): void
    {
        $this->assertTrue(
            defined('BLOCK_MANAGER_LOADED'),
            'plugins/BlockManager/loader.php did not define BLOCK_MANAGER_LOADED — '
            . 'the legacy globber in core/includes/header.inc.php should include every plugins/*/loader.php at boot.'
        );

        $this->assertTrue(BLOCK_MANAGER_LOADED);
    }
}
