-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Vitor Mattos <[email protected]>
- Loading branch information
1 parent
be16fed
commit cb5c04d
Showing
9 changed files
with
41 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ public function testAccountCreateWithInvalidUuid():void { | |
'password' => 'secret', | ||
'signPassword' => 'secretToSign' | ||
]) | ||
->withPath('/account/create/1234564789') | ||
->withPath('/api/v1/account/create/1234564789') | ||
->assertResponseCode(422); | ||
|
||
$response = $this->assertRequest(); | ||
|
@@ -84,7 +84,7 @@ public function testAccountCreateWithSuccess():void { | |
'password' => 'secret', | ||
'signPassword' => 'secretToSign' | ||
]) | ||
->withPath('/account/create/' . $signers[0]->getUuid()); | ||
->withPath('/api/v1/account/create/' . $signers[0]->getUuid()); | ||
$this->markUserExists('[email protected]'); | ||
|
||
$this->assertRequest(); | ||
|
@@ -112,7 +112,7 @@ public function testPostProfileFilesWithInvalidData():void { | |
] | ||
] | ||
]) | ||
->withPath('/account/files') | ||
->withPath('/api/v1/account/files') | ||
->assertResponseCode(401); | ||
|
||
$this->assertRequest(); | ||
|
@@ -140,7 +140,7 @@ public function testPostAccountAddFilesWithSuccess():void { | |
] | ||
] | ||
]) | ||
->withPath('/account/files'); | ||
->withPath('/api/v1/account/files'); | ||
|
||
$this->assertRequest(); | ||
} | ||
|
@@ -150,7 +150,7 @@ public function testPostAccountAddFilesWithSuccess():void { | |
*/ | ||
public function testMeWithoutAuthenticatedUser():void { | ||
$this->request | ||
->withPath('/account/me') | ||
->withPath('/api/v1/account/me') | ||
->assertResponseCode(404); | ||
|
||
$this->assertRequest(); | ||
|
@@ -162,7 +162,7 @@ public function testMeWithoutAuthenticatedUser():void { | |
public function testMeWithAuthenticatedUser():void { | ||
$this->createAccount('username', 'password'); | ||
$this->request | ||
->withPath('/account/me') | ||
->withPath('/api/v1/account/me') | ||
->withRequestHeader([ | ||
'Authorization' => 'Basic ' . base64_encode('username:password') | ||
]); | ||
|
@@ -181,7 +181,7 @@ public function testApprovalListWithSuccess():void { | |
]); | ||
|
||
$this->request | ||
->withPath('/account/files/approval/list') | ||
->withPath('/api/v1/account/files/approval/list') | ||
->withRequestHeader([ | ||
'Authorization' => 'Basic ' . base64_encode('allowapprove:password') | ||
]); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters