Files
php-auth/tests/CommandBus/AttributeLocatorTest.php
Ron Rise 667797df15
Some checks failed
🧪✨ Tests Workflow / 🛡️ 🔒 Library Audit (push) Successful in 1m2s
🧪✨ Tests Workflow / 📝 ✨ Code Lint (push) Successful in 1m10s
🧪✨ Tests Workflow / 🛡️ 🔒 License Check (push) Successful in 1m32s
🧪✨ Tests Workflow / 🐙 🔍 Code Sniffer (push) Successful in 1m39s
🧪✨ Tests Workflow / 🧪 ✨ Database Migrations (push) Failing after 2m19s
🧪✨ Tests Workflow / 🧪 ✅ Unit Tests (push) Successful in 52s
Basics of auth
2026-01-02 15:06:04 -05:00

38 lines
977 B
PHP

<?php
declare(strict_types=1);
namespace Siteworxpro\Tests\CommandBus;
use League\Tactician\Exception\CanNotInvokeHandlerException;
use Siteworxpro\App\CommandBus\AttributeLocator;
use Siteworxpro\Tests\Unit;
class AttributeLocatorTest extends Unit
{
private const array HANDLERS = [
];
/**
* @return void
*/
public function testResolvesFiles(): void
{
$this->markTestSkipped('Nothing to test right now.');
// $attributeLocator = new AttributeLocator();
// foreach (self::HANDLERS as $command => $handler) {
// $class = $attributeLocator->getHandlerForCommand($command);
// $this->assertInstanceOf($handler, $class);
// }
}
public function testThrowsOnCannotResolve(): void
{
$attributeLocator = new AttributeLocator();
$this->expectException(CanNotInvokeHandlerException::class);
$attributeLocator->getHandlerForCommand('NonExistentCommand');
}
}