1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13:00

Fix test wrong depends

This commit is contained in:
Jake Barnby 2023-08-23 01:17:14 -04:00
parent 0639ac1ab3
commit e8ae7fb49a
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C
3 changed files with 4 additions and 5 deletions

2
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "12d4da6b26d9f15f632cd681a837e026",
"content-hash": "7cb5852653a858c1846543914c20f87f",
"packages": [
{
"name": "adhocore/jwt",

View file

@ -346,7 +346,7 @@ trait AccountBase
*/
public function testGetAccountLogs($data): array
{
sleep(10);
sleep(5);
$session = $data['session'] ?? '';
$sessionId = $data['sessionId'] ?? '';
$userId = $data['id'] ?? '';

View file

@ -589,7 +589,7 @@ class ProjectsConsoleClientTest extends Scope
/**
* @group smtpAndTemplates
* @depends testCreateProject */
* @depends testUpdateProject */
public function testUpdateTemplates($data): array
{
$id = $data['projectId'];
@ -602,7 +602,7 @@ class ProjectsConsoleClientTest extends Scope
$this->assertEquals(200, $response['headers']['status-code']);
$this->assertEquals('Account Verification', $response['body']['subject']);
$this->assertEquals('Project Test Team', $response['body']['senderName']);
$this->assertEquals('Project Test 2 Team', $response['body']['senderName']);
$this->assertEquals('team@appwrite.io', $response['body']['senderEmail']);
$this->assertEquals('verification', $response['body']['type']);
$this->assertEquals('en-us', $response['body']['locale']);
@ -752,7 +752,6 @@ class ProjectsConsoleClientTest extends Scope
$this->assertEquals(200, $response['headers']['status-code']);
// Check session doesn't expire too soon.
sleep(30);
// Get User