Omnipay\Common\Message\AbstractResponseTest::testGetRedirectResponseGet PHP Метод

testGetRedirectResponseGet() публичный Метод

    public function testGetRedirectResponseGet()
    {
        $this->response = m::mock('\\Omnipay\\Common\\Message\\AbstractResponseTest_MockRedirectResponse')->makePartial();
        $this->response->shouldReceive('getRedirectMethod')->andReturn('GET');
        $httpResponse = $this->response->getRedirectResponse();
        $this->assertSame(302, $httpResponse->getStatusCode());
        $this->assertSame('https://example.com/redirect?a=1&b=2', $httpResponse->getTargetUrl());
    }