Refactor architecture test contracts

This commit is contained in:
2026-03-19 18:25:19 +01:00
parent 4dd6d451f6
commit 1e993e470c
23 changed files with 1311 additions and 1190 deletions

View File

@@ -0,0 +1,21 @@
<?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);
}
}
}