mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-05 20:57:12 +00:00
[Maintenance] Ignore abstract classes in spec arkitect rule
This commit is contained in:
parent
f357304fd1
commit
1502b3cabe
3 changed files with 3 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ use Arkitect\ClassSet;
|
|||
use Arkitect\CLI\Config;
|
||||
use Arkitect\Expression\ForClasses\Extend;
|
||||
use Arkitect\Expression\ForClasses\HaveNameMatching;
|
||||
use Arkitect\Expression\ForClasses\IsNotAbstract;
|
||||
use Arkitect\Expression\ForClasses\IsFinal;
|
||||
use Arkitect\Expression\ForClasses\NotDependsOnTheseNamespaces;
|
||||
use Arkitect\Expression\ForClasses\ResideInOneOfTheseNamespaces;
|
||||
|
|
@ -25,6 +26,7 @@ return static function (Config $config): void
|
|||
,
|
||||
Rule::allClasses()
|
||||
->that(new Extend(ObjectBehavior::class))
|
||||
->andThat(new IsNotAbstract())
|
||||
->should(new IsFinal())
|
||||
->because('Specifications should not be extendable')
|
||||
,
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ final class StatisticsDocumentationModifier implements DocumentationModifierInte
|
|||
{
|
||||
private const PATH = '/admin/statistics';
|
||||
|
||||
/** @param array<string, array<string, string>> $intervalsMap */
|
||||
public function __construct(
|
||||
private string $apiRoute,
|
||||
private DateTimeProviderInterface $dateTimeProvider,
|
||||
|
|
|
|||
|
|
@ -111,7 +111,6 @@ final class StatisticsTest extends JsonApiTestCase
|
|||
$this->assertResponseCode($this->client->getResponse(), Response::HTTP_NOT_FOUND);
|
||||
}
|
||||
|
||||
// * @dataProvider invalidPeriods TODO: split date range strictly by period, last period cut to fit
|
||||
/**
|
||||
* @test
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue