settermjd/podcast-site

View on GitHub
tests/unit/Middleware/GoogleAnalyticsTest.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method testCanRenderGoogleAnalytics has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testCanRenderGoogleAnalytics()
    {
        $route = $this->getMockBuilder(Route::class)
            ->disableOriginalConstructor()
            ->getMock();
Severity: Minor
Found in tests/unit/Middleware/GoogleAnalyticsTest.php - About 1 hr to fix

    Method testAnalyticsCodeIsNotRenderedOnItunesRoute has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function testAnalyticsCodeIsNotRenderedOnItunesRoute()
        {
            $route = $this->getMockBuilder(Route::class)
                ->disableOriginalConstructor()
                ->getMock();
    Severity: Minor
    Found in tests/unit/Middleware/GoogleAnalyticsTest.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status