public function testPurchase() { /** * @var LegacyExpressPurchaseResponse $response */ $response = $this->gateway->purchase($this->options)->send(); $this->assertTrue($response->isSuccessful()); $this->assertTrue($response->isRedirect()); $this->assertNotEmpty($response->getRedirectUrl()); }