Skip to content

Commit a429c05

Browse files
committed
MAGETWO-64626: Web API test for file export
edit test for run on http
1 parent ef7e78c commit a429c05

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

dev/tests/api-functional/testsuite/Magento/Analytics/Api/LinkProviderTest.php

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,20 @@ public function testGetAll()
6868
return;
6969
}
7070
$this->fail("Exception 'Operation allowed only in HTTPS' should be thrown");
71+
} else {
72+
$response = $this->_webApiCall($serviceInfo);
73+
$this->assertEquals(2, count($response));
74+
$this->assertEquals(
75+
base64_encode($fileInfo->getInitializationVector()),
76+
$response['initialization_vector']
77+
);
78+
$this->assertEquals(
79+
$storeManager->getStore()->getBaseUrl(
80+
UrlInterface::URL_TYPE_MEDIA
81+
) . $fileInfo->getPath(),
82+
$response['url']
83+
);
7184
}
72-
73-
$response = $this->_webApiCall($serviceInfo);
74-
$this->assertEquals(2, count($response));
75-
$this->assertEquals(base64_encode($fileInfo->getInitializationVector()), $response['initialization_vector']);
76-
$this->assertEquals(
77-
$storeManager->getStore()->getBaseUrl(
78-
UrlInterface::URL_TYPE_MEDIA
79-
) . $fileInfo->getPath(),
80-
$response['url']
81-
);
8285
}
8386

8487
/**

0 commit comments

Comments
 (0)