Payum\Paypal\Masspay\Nvp\Tests\ApiTest::couldBeConstructedWithOptionsAndHttpClient PHP Method

couldBeConstructedWithOptionsAndHttpClient() public method

    public function couldBeConstructedWithOptionsAndHttpClient()
    {
        $client = $this->createHttpClientMock();
        $factory = $this->createHttpMessageFactory();
        $api = new Api(array('username' => 'a_username', 'password' => 'a_password', 'signature' => 'a_signature', 'sandbox' => true), $client, $factory);
        $this->assertAttributeSame($client, 'client', $api);
        $this->assertAttributeSame($factory, 'messageFactory', $api);
    }