luyadev/luya-module-cms

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

Summary

Maintainability
A
2 hrs
Test Coverage

Method testRegisterJsAssets has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testRegisterJsAssets()
    {
        // Simulate already registered js
        Yii::$app->view->js = [
            View::POS_READY => [
Severity: Minor
Found in tests/src/base/PhpBlockViewTest.php - About 1 hr to fix

    Method testRegisterCssAndJs has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function testRegisterCssAndJs()
        {
            // Simulate already registered js
            Yii::$app->view->js = [
                View::POS_READY => [
    Severity: Minor
    Found in tests/src/base/PhpBlockViewTest.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status