File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,14 +20,14 @@ class PackagesAuth
20
20
const KEY_HTTPBASIC = 'http-basic ' ;
21
21
const KEY_USERNAME = 'username ' ;
22
22
const KEY_PASSWORD = 'password ' ;
23
- /**#@-/
23
+ /**#@-* /
24
24
25
25
/**#@+
26
26
* Filenames for auth and package info
27
27
*/
28
28
const PATH_TO_AUTH_FILE = 'auth.json ' ;
29
29
const PATH_TO_PACKAGES_FILE = 'packages.json ' ;
30
- /**#@-/
30
+ /**#@-* /
31
31
32
32
/**
33
33
* @var \Zend\ServiceManager\ServiceLocatorInterface
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public function testSaveAuthJsonAction()
41
41
{
42
42
$ this ->packagesAuth
43
43
->expects ($ this ->once ())
44
- ->method ('checkCredentialsAction ' )
44
+ ->method ('checkCredentials ' )
45
45
->will ($ this ->returnValue (\Zend_Json::encode (['success ' => true ])));
46
46
$ this ->packagesAuth
47
47
->expects ($ this ->once ())
@@ -61,7 +61,7 @@ public function testSaveAuthJsonActionWithError()
61
61
{
62
62
$ this ->packagesAuth
63
63
->expects ($ this ->once ())
64
- ->method ('checkCredentialsAction ' )
64
+ ->method ('checkCredentials ' )
65
65
->will ($ this ->throwException (new \Exception ));
66
66
$ this ->packagesAuth ->expects ($ this ->never ())->method ('saveAuthJson ' );
67
67
$ jsonModel = $ this ->controller ->saveAuthJsonAction ();
@@ -83,7 +83,7 @@ public function testCheckAuthAction()
83
83
->will ($ this ->returnValue (['username ' => 'test ' , 'password ' => 'test ' ]));
84
84
$ this ->packagesAuth
85
85
->expects ($ this ->once ())
86
- ->method ('checkCredentialsAction ' )
86
+ ->method ('checkCredentials ' )
87
87
->will ($ this ->returnValue (\Zend_Json::encode (['success ' => true ])));
88
88
$ jsonModel = $ this ->controller ->checkAuthAction ();
89
89
$ this ->assertInstanceOf ('Zend\View\Model\ViewModel ' , $ jsonModel );
You can’t perform that action at this time.
0 commit comments