<?php

namespace MintyPHP\Tests\Architecture;

use PHPUnit\Framework\TestCase;

class ListActionContractTest extends TestCase
{
    use ListContractFiles;
    use ProjectFileAssertionSupport;

    public function testListActionsExposeSplitToolbarSchemasAndChipMeta(): void
    {
        foreach ($this->listIndexActions() as $file) {
            $content = $this->readProjectFile($file);
            $this->assertStringContainsString('$searchToolbarFilterSchema', $content, $file);
            $this->assertStringContainsString('$drawerToolbarFilterSchema', $content, $file);
            $this->assertStringContainsString('$filterChipMeta', $content, $file);
        }
    }
}
