26 lines
		
	
	
		
			757 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			757 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
<?php
 | 
						|
/**
 | 
						|
 * Copyright © Magento, Inc. All rights reserved.
 | 
						|
 * See COPYING.txt for license details.
 | 
						|
 */
 | 
						|
namespace Magento\Paypal\Helper;
 | 
						|
 | 
						|
use Magento\TestFramework\Helper\Bootstrap;
 | 
						|
 | 
						|
class DataTest extends \PHPUnit\Framework\TestCase
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * Tests if method executes without fatal error when some vault payment method is enabled.
 | 
						|
     *
 | 
						|
     * @magentoConfigFixture current_store payment/payflowpro/active 1
 | 
						|
     * @magentoConfigFixture current_store payment/payflowpro_cc_vault/active 1
 | 
						|
     */
 | 
						|
    public function testGetBillingAgreementMethodsWithVaultEnabled()
 | 
						|
    {
 | 
						|
        /** @var Data $model */
 | 
						|
        $model = Bootstrap::getObjectManager()->create(Data::class);
 | 
						|
 | 
						|
        $this->assertEmpty($model->getBillingAgreementMethods());
 | 
						|
    }
 | 
						|
}
 |