Skip to content

Commit

Permalink
add coverage to landing routing
Browse files Browse the repository at this point in the history
  • Loading branch information
joesama committed Feb 13, 2020
1 parent 9aec50b commit eadfbd4
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/Feature/Routings/RoutingBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,4 +247,30 @@ public function theBuilderCanRegisterApiRouting()

$this->assertCount(5, $this->router->getRoutes());
}

/**
*
* @test
* @testdox Register Landing Routing.
* @return void
*
*/
public function theBuilderCanRegisterLandingRouting()
{
$builder = mock::mock(Builder::class, [$this->router])->makePartial();

$namespace = 'namespace';

$builder->shouldReceive('landingRouting')
->with($namespace)
->once();

$builder->landingRouting($namespace);

$build = new Builder($this->router);

$build->landingRouting($namespace);

$this->assertCount(1, $this->router->getRoutes());
}
}

0 comments on commit eadfbd4

Please sign in to comment.