From 166e92ac68706d14c6f04f21832c03751b996f31 Mon Sep 17 00:00:00 2001 From: leogermani Date: Mon, 4 Nov 2019 12:10:47 -0300 Subject: [PATCH] fix test #274 --- tests/test-api-roles.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test-api-roles.php b/tests/test-api-roles.php index 17959e1df..f46f18ebd 100644 --- a/tests/test-api-roles.php +++ b/tests/test-api-roles.php @@ -144,7 +144,7 @@ class TAINACAN_REST_Roles_Controller extends TAINACAN_UnitApiTestCase { $request->set_query_params( [ 'name' => 'Changed name', - 'add_cap' => 'tnc_col_12_edit' + 'add_cap' => 'tnc_col_12_edit_items' ] ); @@ -154,8 +154,8 @@ class TAINACAN_REST_Roles_Controller extends TAINACAN_UnitApiTestCase { $role = \wp_roles()->roles['tainacan-new-role']; - $this->assertArrayHasKey('tnc_col_12_edit', $role['capabilities']); - $this->assertTrue($role['capabilities']['tnc_col_12_edit']); + $this->assertArrayHasKey('tnc_col_12_edit_items', $role['capabilities']); + $this->assertTrue($role['capabilities']['tnc_col_12_edit_items']); $this->assertArrayHasKey('upload_files', $role['capabilities']); $this->assertTrue($role['capabilities']['upload_files']); }