ImboUnitTest\Http\Response\ResponseFormatterTest::testReturnWhenThereIsNoModel PHP Method

testReturnWhenThereIsNoModel() public method

    public function testReturnWhenThereIsNoModel()
    {
        $this->response->expects($this->once())->method('getStatusCode')->will($this->returnValue(200));
        $this->response->expects($this->once())->method('getModel')->will($this->returnValue(null));
        $this->formatter->expects($this->never())->method('format');
        $this->responseFormatter->format($this->event);
    }