Flugg\Responder\Tests\AccessResponderTest::youCanAccessThroughFacade PHP Méthode

youCanAccessThroughFacade() public méthode

Test that you can access the responder service from the Laravel's IoC container.
    public function youCanAccessThroughFacade()
    {
        // Arrange...
        $fruit = $this->createModel();
        $responder = $this->mockResponder();
        // Act...
        ResponderFacade::success($fruit, 200);
        // Assert...
        $responder->shouldHaveReceived('success')->with($fruit, 200);
    }