Skip to content

Commit 68bbe2c

Browse files
committed
MAGETWO-51505: Improve Component Manager workflow
- test fixes.
1 parent f074ae7 commit 68bbe2c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

setup/src/Magento/Setup/Model/PackagesAuth.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ class PackagesAuth
2020
const KEY_HTTPBASIC = 'http-basic';
2121
const KEY_USERNAME = 'username';
2222
const KEY_PASSWORD = 'password';
23-
/**#@-/
23+
/**#@-*/
2424

2525
/**#@+
2626
* Filenames for auth and package info
2727
*/
2828
const PATH_TO_AUTH_FILE = 'auth.json';
2929
const PATH_TO_PACKAGES_FILE = 'packages.json';
30-
/**#@-/
30+
/**#@-*/
3131

3232
/**
3333
* @var \Zend\ServiceManager\ServiceLocatorInterface

setup/src/Magento/Setup/Test/Unit/Controller/MarketplaceTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function testSaveAuthJsonAction()
4141
{
4242
$this->packagesAuth
4343
->expects($this->once())
44-
->method('checkCredentialsAction')
44+
->method('checkCredentials')
4545
->will($this->returnValue(\Zend_Json::encode(['success' => true])));
4646
$this->packagesAuth
4747
->expects($this->once())
@@ -61,7 +61,7 @@ public function testSaveAuthJsonActionWithError()
6161
{
6262
$this->packagesAuth
6363
->expects($this->once())
64-
->method('checkCredentialsAction')
64+
->method('checkCredentials')
6565
->will($this->throwException(new \Exception));
6666
$this->packagesAuth->expects($this->never())->method('saveAuthJson');
6767
$jsonModel = $this->controller->saveAuthJsonAction();
@@ -83,7 +83,7 @@ public function testCheckAuthAction()
8383
->will($this->returnValue(['username' => 'test', 'password' => 'test']));
8484
$this->packagesAuth
8585
->expects($this->once())
86-
->method('checkCredentialsAction')
86+
->method('checkCredentials')
8787
->will($this->returnValue(\Zend_Json::encode(['success' => true])));
8888
$jsonModel = $this->controller->checkAuthAction();
8989
$this->assertInstanceOf('Zend\View\Model\ViewModel', $jsonModel);

0 commit comments

Comments
 (0)