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

@@ -3,7 +3,6 @@
namespace Tests\unit\workflow\engine\methods\emailServer;
use Faker\Factory;
use Google_Auth_Exception;
use Illuminate\Support\Facades\Cache;
use ProcessMaker\GmailOAuth\GmailOAuth;
use ProcessMaker\Model\User;
@@ -17,9 +16,6 @@ class EmailServerGmailOAuthTest extends TestCase
*/
public function setUp(): void
{
if (version_compare(phpversion(), 7.3, '>') ) {
$this->markTestSkipped('The changes in third party are not available');
}
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}/");
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
{
use DatabaseTransactions;
private $faker;
@@ -26,9 +25,6 @@ class GmailOAuthTest extends TestCase
*/
public function setUp(): void
{
if (version_compare(phpversion(), 7.3, '>') ) {
$this->markTestSkipped('The changes in third party are not available');
}
parent::setUp();
$this->faker = Factory::create();