- UI Revamp

- Some i18n added/fixed
- WIP on a new testing mechanism
This commit is contained in:
mcndave committed 2026-11-25 19:18:36 +00:00
1 parent f5014e1cee
commit 58c61a8f01
76 files changed
+1428 -313

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
<?php
namespace Lean\Console\Controller;
use DI\Attribute\Inject;
use Psr\Http\Message\{ ResponseInterface, ServerRequestInterface };
use Notes\Route\Attribute\Method\Route;
use Lean\Console\{ Lib, Form };
class Testing extends Console {
use Lib\ConsoleControllerTrait;
#[Inject]
protected Lib\Testing\TestFetcher $testFetcher;
#[Route(route: "/testing/tests", name: "lean.console:testing.tests", method: [ 'GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTION', 'HEAD' ])]
public function tests(ServerRequestInterface $request, array $arguments) : ResponseInterface
{
$context = new Form\Testing\TestContext($request, "tests.run");
$this->form(new Form\Testing\Test($this->container, $this->testFetcher), $context);
if ($context->formExecuted) {
return $context->formExecutionStatus;
}
return $this->renderView("lean-console/page/testing/tests", get_defined_vars());
}
}