13 public function testFetchAndSave()
17 \
Magento\Paypal\Model\Report\Settlement::class
20 $filename =
'STL-00000000.00.abc.CSV';
21 $connection->expects($this->once())->method(
'rawls')->will($this->returnValue([$filename => []]));
22 $connection->expects($this->once())->method(
'read')->with($filename, $this->anything());
52 public function testGetSftpCredentials($automaticMode, $expectedResult)
56 \
Magento\Paypal\Model\Report\Settlement::class
61 $this->assertEquals($expectedResult,
$result);
71 [[
'username' =>
'test',
'password' =>
'test',
'path' =>
'/']],
72 [[
'hostname' =>
'example.com',
'password' =>
'test',
'path' =>
'/']],
73 [[
'hostname' =>
'example.com',
'username' =>
'test',
'path' =>
'/']],
74 [[
'hostname' =>
'example.com',
'username' =>
'test',
'password' =>
'test']]
88 'hostname' =>
'127.0.0.1',
90 'username' =>
'login',
91 'password' =>
'password',
100 'hostname' =>
'127.0.0.1',
102 'username' =>
'login',
103 'password' =>
'password',
testCreateConnectionException($config)
createAutomaticModeDataProvider()
static createConnection(array $config)
createConnectionExceptionDataProvider()
static getObjectManager()