Skip to content

Commit

Permalink
[#341] Fixing apigee_edge_apiproduct_rbac tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
arlina-espinoza committed Mar 12, 2020
1 parent c494a4b commit e7fc6b9
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 16 deletions.
1 change: 0 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ workflows:
- run-functional-js-tests:
requires:
- update-dependencies
- run-functional-tests
- run-code-sniffer:
requires:
- update-dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* MA 02110-1301, USA.
*/

namespace Drupal\Tests\apigee_edge_apiproduct_rbac\Functional;
namespace Drupal\Tests\apigee_edge_apiproduct_rbac\FunctionalJavascript;

use Drupal\Core\Session\AccountInterface;

Expand Down Expand Up @@ -46,8 +46,8 @@ protected function setUp() {
/**
* {@inheritdoc}
*
* \Drupal\Tests\apigee_edge\Functional\ApiProductAccessTest validates
* developerAppEditFormTest().
* \Drupal\Tests\apigee_edge\FunctionalJavascript\ApiProductAccessTest
* validates developerAppEditFormTest().
*/
public function testApiProductAccess() {
$this->entityAccessTest();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* MA 02110-1301, USA.
*/

namespace Drupal\Tests\apigee_edge_apiproduct_rbac\Functional;
namespace Drupal\Tests\apigee_edge_apiproduct_rbac\FunctionalJavascript;

use Drupal\Core\Session\AccountInterface;

Expand Down Expand Up @@ -46,8 +46,8 @@ protected function setUp() {
/**
* {@inheritdoc}
*
* \Drupal\Tests\apigee_edge\Functional\ApiProductAccessTest validates
* developerAppEditFormTest().
* \Drupal\Tests\apigee_edge\FunctionalJavascript\ApiProductAccessTest
* validates developerAppEditFormTest().
*/
public function testApiProductAccess() {
$this->entityAccessTest();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* MA 02110-1301, USA.
*/

namespace Drupal\Tests\apigee_edge_apiproduct_rbac\Functional;
namespace Drupal\Tests\apigee_edge_apiproduct_rbac\FunctionalJavascript;

use Drupal\Core\Session\AccountInterface;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* MA 02110-1301, USA.
*/

namespace Drupal\Tests\apigee_edge_apiproduct_rbac\Functional;
namespace Drupal\Tests\apigee_edge_apiproduct_rbac\FunctionalJavascript;

use Drupal\Core\Session\AccountInterface;

Expand All @@ -39,8 +39,8 @@ class ApiProductRoleBasedAccessMissingAttributeTest extends ApiProductRoleBasedA
/**
* {@inheritdoc}
*
* \Drupal\Tests\apigee_edge\Functional\ApiProductAccessTest validates
* developerAppEditFormTest().
* \Drupal\Tests\apigee_edge\FunctionalJavascript\ApiProductAccessTest
* validates developerAppEditFormTest().
*/
public function testApiProductAccess() {
$this->entityAccessTest();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
* MA 02110-1301, USA.
*/

namespace Drupal\Tests\apigee_edge_apiproduct_rbac\Functional;
namespace Drupal\Tests\apigee_edge_apiproduct_rbac\FunctionalJavascript;

use Drupal\apigee_edge\Entity\ApiProductInterface;
use Drupal\Core\Url;
use Drupal\Tests\apigee_edge\Functional\ApiProductAccessTest;
use Drupal\Tests\apigee_edge\FunctionalJavascript\ApiProductAccessTest;
use Drupal\user\UserInterface;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public function testTeamApiProductAccess() {
// we do not need to validate the developer app/edit forms because those
// are covered by the parent module's ApiProductAccessTest which ensures
// the API product list is filtered properly there.
// \Drupal\Tests\apigee_edge\Functional\ApiProductAccessTest.
// \Drupal\Tests\apigee_edge\FunctionalJavascript\ApiProductAccessTest.
$this->drupalLogout();
// <<< Team member.
// If team member gets removed from the team its API Product access
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* MA 02110-1301, USA.
*/

namespace Drupal\Tests\apigee_edge\Functional;
namespace Drupal\Tests\apigee_edge\FunctionalJavascript;

use Apigee\Edge\Api\Management\Entity\App;
use Drupal\apigee_edge\Entity\ApiProduct;
Expand All @@ -37,7 +37,7 @@
* @group apigee_edge_api_product
* @group apigee_edge_api_product_access
*/
class ApiProductAccessTest extends ApigeeEdgeFunctionalTestBase {
class ApiProductAccessTest extends ApigeeEdgeFunctionalJavascriptTestBase {

protected const USER_WITH_BYPASS_PERM = 'user_with_bypass_perm';
protected const INTERNAL_ROLE = 'internal';
Expand Down

0 comments on commit e7fc6b9

Please sign in to comment.