PMCORE-3999

This commit is contained in:
Paula Quispe
2022-09-26 11:08:55 -04:00
parent 790a95e965
commit 4ce45e3f6d
4 changed files with 448 additions and 240 deletions

View File

@@ -39,7 +39,7 @@
"colosa/michelangelofe": "release/3.8.0-dev", "colosa/michelangelofe": "release/3.8.0-dev",
"colosa/pmdynaform": "release/3.8.0-dev", "colosa/pmdynaform": "release/3.8.0-dev",
"colosa/taskscheduler": "release/1.0.3-dev", "colosa/taskscheduler": "release/1.0.3-dev",
"google/apiclient": "1.1.6", "google/apiclient": "2.9.0",
"dapphp/securimage": "^3.6", "dapphp/securimage": "^3.6",
"psr/log": "1.0.1", "psr/log": "1.0.1",
"monolog/monolog": "^2.1", "monolog/monolog": "^2.1",

676
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -3,7 +3,6 @@
namespace Tests\unit\workflow\engine\methods\emailServer; namespace Tests\unit\workflow\engine\methods\emailServer;
use Faker\Factory; use Faker\Factory;
use Google_Auth_Exception;
use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Cache;
use ProcessMaker\GmailOAuth\GmailOAuth; use ProcessMaker\GmailOAuth\GmailOAuth;
use ProcessMaker\Model\User; use ProcessMaker\Model\User;
@@ -17,9 +16,6 @@ class EmailServerGmailOAuthTest extends TestCase
*/ */
public function setUp(): void public function setUp(): void
{ {
if (version_compare(phpversion(), 7.3, '>') ) {
$this->markTestSkipped('The changes in third party are not available');
}
parent::setUp(); parent::setUp();
} }
@@ -53,6 +49,6 @@ class EmailServerGmailOAuthTest extends TestCase
$_GET['code'] = $faker->regexify("/[1-9]\/[a-zA-Z]{25}-[a-zA-Z]{16}_[a-zA-Z]{19}-[a-zA-Z]{24}/"); $_GET['code'] = $faker->regexify("/[1-9]\/[a-zA-Z]{25}-[a-zA-Z]{16}_[a-zA-Z]{19}-[a-zA-Z]{24}/");
require_once PATH_METHODS . 'emailServer/emailServerGmailOAuth.php'; require_once PATH_METHODS . 'emailServer/emailServerGmailOAuth.php';
$this->assertTrue(Cache::has('errorMessageIfNotAuthenticate')); $this->assertFalse(Cache::has('errorMessageIfNotAuthenticate'));
} }
} }

View File

@@ -17,7 +17,6 @@ use BadMethodCallException;
class GmailOAuthTest extends TestCase class GmailOAuthTest extends TestCase
{ {
use DatabaseTransactions; use DatabaseTransactions;
private $faker; private $faker;
@@ -26,9 +25,6 @@ class GmailOAuthTest extends TestCase
*/ */
public function setUp(): void public function setUp(): void
{ {
if (version_compare(phpversion(), 7.3, '>') ) {
$this->markTestSkipped('The changes in third party are not available');
}
parent::setUp(); parent::setUp();
$this->faker = Factory::create(); $this->faker = Factory::create();