tests/unit/Middleware/GoogleAnalyticsTest.php
Method testCanRenderGoogleAnalytics
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testCanRenderGoogleAnalytics()
{
$route = $this->getMockBuilder(Route::class)
->disableOriginalConstructor()
->getMock();
Method testAnalyticsCodeIsNotRenderedOnItunesRoute
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testAnalyticsCodeIsNotRenderedOnItunesRoute()
{
$route = $this->getMockBuilder(Route::class)
->disableOriginalConstructor()
->getMock();