siment/magento2-http-header-theme-switch

View on GitHub
Test/Unit/Plugin/Magento/Framework/View/DesignExceptionsTest.php

Summary

Maintainability
A
3 hrs
Test Coverage

Method testAfterGetThemeByRequest has 64 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testAfterGetThemeByRequest(
        $scenario,
        $result,
        $expressions,
        $deviceHeader
Severity: Major
Found in Test/Unit/Plugin/Magento/Framework/View/DesignExceptionsTest.php - About 2 hrs to fix

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

        public function testAfterGetThemeByRequestDataProvider()
        {
            $return = [
                [
                    'result_not_false', // scenario
    Severity: Minor
    Found in Test/Unit/Plugin/Magento/Framework/View/DesignExceptionsTest.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status