Skip to content

Commit

Permalink
Merge pull request #443 from magento-performance/CABPI-394
Browse files Browse the repository at this point in the history
CABPI-394: Fix Failed WebAPI Tests
  • Loading branch information
andimov authored May 5, 2022
2 parents 6e5c5ab + 32b3e6d commit e37b3c1
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class AdobeImsTokenUserContextTest extends WebapiAbstract
protected function setUp(): void
{
parent::setUp();

$this->_markTestAsRestOnly();
$objectManager = Bootstrap::getObjectManager();
$this->manager = $objectManager->get(JwtManagerInterface::class);
$this->cache = $objectManager->get(CacheInterface::class);
Expand All @@ -106,7 +106,6 @@ protected function setUp(): void
*/
public function testUseAdobeAccessTokenModuleDisabled()
{
$this->_markTestAsRestOnly();
$this->configWriter->save(ImsConfig::XML_PATH_ENABLED, 0);
$this->scopeConfig->clean();

Expand Down Expand Up @@ -135,7 +134,6 @@ public function testUseAdobeAccessTokenModuleDisabled()
*/
public function testUseAdobeAccessTokenSuccess()
{
$this->_markTestAsRestOnly();
$adminUserNameFromFixture = 'webapi_user';
$token = $this->createAccessToken();
$this->configWriter->save(ImsConfig::XML_PATH_ENABLED, 1);
Expand All @@ -150,7 +148,6 @@ public function testUseAdobeAccessTokenSuccess()
*/
public function testUseAdobeAccessTokenAdminNotExist()
{
$this->_markTestAsRestOnly();
$token = $this->createAccessToken();
$noExceptionOccurred = false;
try {
Expand All @@ -175,7 +172,6 @@ public function testUseAdobeAccessTokenAdminNotExist()
*/
public function testUseAdobeAccessTokenExpired()
{
$this->_markTestAsRestOnly();
$token = $this->createAccessToken('-2 day');

$noExceptionOccurred = false;
Expand Down Expand Up @@ -204,7 +200,6 @@ public function testUseAdobeAccessTokenExpired()
*/
public function testUseAdobeAccessTokenInvalidCertificate()
{
$this->_markTestAsRestOnly();
$token = $this->createAccessToken('now', true);

$noExceptionOccurred = false;
Expand Down

0 comments on commit e37b3c1

Please sign in to comment.