luyadev/luya-testsuite

View on GitHub
src/cases/NgRestTestCase.php

Summary

Maintainability
B
6 hrs
Test Coverage
B
89%

File NgRestTestCase.php has 295 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

namespace luya\testsuite\cases;

use yii\base\InvalidConfigException;
Severity: Minor
Found in src/cases/NgRestTestCase.php - About 3 hrs to fix

    Method mockBasicAdminModels has 49 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        protected function mockBasicAdminModels()
        {
            $this->createAdminUserGroupTable();
            $this->createAdminGroupAuthTable();
            $this->createAdminAuthTable();
    Severity: Minor
    Found in src/cases/NgRestTestCase.php - About 1 hr to fix

      Method testBasicNgRestMethods has 33 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function testBasicNgRestMethods()
          {
              $class = $this->modelClass;
              
              $this->assertNotNull($class::ngRestApiEndpoint());
      Severity: Minor
      Found in src/cases/NgRestTestCase.php - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status