luyadev/luya-module-cms

View on GitHub
tests/src/base/BlockVariationRegisterTest.php

Summary

Maintainability
B
5 hrs
Test Coverage

Method testRegisterDefaultVariations has 81 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testRegisterDefaultVariations()
    {
        $this->app->getModule('cmsadmin')->blockVariations = [
            TestingBlock::variations()
                ->add('idf', 'My Test')
Severity: Major
Found in tests/src/base/BlockVariationRegisterTest.php - About 3 hrs to fix

    Method testVariationWhichIsSetAndNotDefault has 58 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function testVariationWhichIsSetAndNotDefault()
        {
            $this->app->getModule('cmsadmin')->blockVariations = [
                TestingBlock::variations()
                    ->add('idf', 'My Test')
    Severity: Major
    Found in tests/src/base/BlockVariationRegisterTest.php - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status