File tree 6 files changed +0
-25
lines changed
modules/acquia_cms_headless/tests/src
6 files changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,6 @@ public function testContentAdmin(): void {
118
118
/** @var \Drupal\FunctionalJavascriptTests\JSWebAssert $assertSession */
119
119
$ assertSession = $ this ->assertSession ();
120
120
$ assertSession ->pageTextContains ('Headless Test Page ' );
121
- // @todo Below commented test is failing in 3.0-rc8 version of Gin theme.
122
- // However this was working in 3.0-rc5 will be fixed in ACMS-3456.
123
121
$ assertSession ->linkNotExists ('View ' );
124
122
$ nodePageMenus = [
125
123
'API ' => '/jsonapi/node/test/ ' . $ node ->uuid (),
Original file line number Diff line number Diff line change 3
3
namespace Drupal \Tests \acquia_cms_headless \Functional ;
4
4
5
5
use Drupal \Tests \BrowserTestBase ;
6
- use Drupal \user \Entity \Role ;
7
6
8
7
/**
9
8
* Tests for acquia_cms_headless frontpage.
@@ -56,15 +55,6 @@ public function testFrontPageIsLoginPage(): void {
56
55
*/
57
56
public function testFrontPageIsAdminContentPage (): void {
58
57
$ account = $ this ->createUser ();
59
- // Ensure the administrator role exists,
60
- // required for local environment tests with ddev.
61
- if (!Role::load ('administrator ' )) {
62
- Role::create ([
63
- 'id ' => 'administrator ' ,
64
- 'label ' => 'Administrator ' ,
65
- 'is_admin ' => TRUE ,
66
- ])->save ();
67
- }
68
58
$ account ->addRole ('administrator ' );
69
59
$ account ->save ();
70
60
// Don't use one-time login links instead submit the login form.
Original file line number Diff line number Diff line change 3
3
namespace Drupal \Tests \acquia_cms_headless \Functional ;
4
4
5
5
use Drupal \Core \Extension \Exception \UnknownExtensionException ;
6
- use Drupal \user \Entity \Role ;
7
6
8
7
/**
9
8
* Tests for acquia_cms_headless Hybrid mode.
Original file line number Diff line number Diff line change 4
4
5
5
use Acquia \DrupalEnvironmentDetector \AcquiaDrupalEnvironmentDetector ;
6
6
use Drupal \FunctionalJavascriptTests \WebDriverTestBase ;
7
- use Drupal \user \Entity \Role ;
8
7
9
8
/**
10
9
* Base class for the HeadlessDashboard web_driver tests.
Original file line number Diff line number Diff line change 7
7
use Drupal \Core \Extension \Exception \UnknownExtensionException ;
8
8
use Drupal \Core \Extension \ModuleExtensionList ;
9
9
use Drupal \FunctionalJavascriptTests \WebDriverTestBase ;
10
- use Drupal \user \Entity \Role ;
11
10
12
11
/**
13
12
* Pure headless mode menu tests.
@@ -78,15 +77,6 @@ protected function setUp(): void {
78
77
$ this ->moduleInstaller = $ this ->container ->get ('module_installer ' );
79
78
$ this ->moduleList = $ this ->container ->get ('extension.list.module ' );
80
79
$ account = $ this ->drupalCreateUser ();
81
- // Ensure the administrator role exists,
82
- // required for local environment tests with ddev.
83
- if (!Role::load ('administrator ' )) {
84
- Role::create ([
85
- 'id ' => 'administrator ' ,
86
- 'label ' => 'Administrator ' ,
87
- 'is_admin ' => TRUE ,
88
- ])->save ();
89
- }
90
80
$ account ->addRole ('administrator ' );
91
81
$ account ->save ();
92
82
$ this ->drupalLogin ($ account );
Original file line number Diff line number Diff line change 3
3
namespace Drupal \Tests \acquia_cms_headless \Traits ;
4
4
5
5
use Behat \Mink \Element \NodeElement ;
6
- use Drupal \user \Entity \Role ;
7
6
8
7
/**
9
8
* Trait to test dashboard section.
You can’t perform that action at this time.
0 commit comments