@@ -50,7 +50,7 @@ public function testDeleteUserWithNonAdminIdThrowsException()
50
50
51
51
$ userMapper
52
52
->expects ($ this ->once ())
53
- ->method ('thisUserHasAdminOn ' )
53
+ ->method ('isSiteAdmin ' )
54
54
->will ($ this ->returnValue (false ));
55
55
56
56
$ usersController ->setUserMapper ($ userMapper );
@@ -67,7 +67,7 @@ public function testDeleteUserWithNonAdminIdThrowsException()
67
67
* @expectedException \Exception
68
68
* @expectedExceptionMessage There was a problem trying to delete the user
69
69
*/
70
- public function testDeleteUserWithAdminAccessThowsExceptionOnFailedDelete ()
70
+ public function testDeleteUserWithAdminAccessThrowsExceptionOnFailedDelete ()
71
71
{
72
72
$ request = new \Request ([], ['REQUEST_URI ' => "http://api.dev.joind.in/v2.1/users/3 " , 'REQUEST_METHOD ' => 'DELETE ' ]);
73
73
$ request ->user_id = 1 ;
@@ -82,7 +82,7 @@ public function testDeleteUserWithAdminAccessThowsExceptionOnFailedDelete()
82
82
83
83
$ userMapper
84
84
->expects ($ this ->once ())
85
- ->method ('thisUserHasAdminOn ' )
85
+ ->method ('isSiteAdmin ' )
86
86
->will ($ this ->returnValue (true ));
87
87
88
88
$ userMapper
@@ -101,7 +101,7 @@ public function testDeleteUserWithAdminAccessThowsExceptionOnFailedDelete()
101
101
*
102
102
* @return void
103
103
*/
104
- public function testDeleteUserWithAdminAccessDeletesSuccesfully ()
104
+ public function testDeleteUserWithAdminAccessDeletesSuccessfully ()
105
105
{
106
106
$ request = new \Request ([], ['REQUEST_URI ' => "http://api.dev.joind.in/v2.1/users/3 " , 'REQUEST_METHOD ' => 'DELETE ' ]);
107
107
$ request ->user_id = 1 ;
@@ -116,7 +116,7 @@ public function testDeleteUserWithAdminAccessDeletesSuccesfully()
116
116
117
117
$ userMapper
118
118
->expects ($ this ->once ())
119
- ->method ('thisUserHasAdminOn ' )
119
+ ->method ('isSiteAdmin ' )
120
120
->will ($ this ->returnValue (true ));
121
121
122
122
$ userMapper
0 commit comments