Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
WCMS
uw_base_profile
Commits
f2c62dc4
Commit
f2c62dc4
authored
Jun 07, 2021
by
l26yan
Browse files
ISTWCMS-4874 Test 'People' and 'Reports toolbar in Workbench
parent
0e8f2c18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
tests/src/Functional/UwWcmsBasicTest.php
tests/src/Functional/UwWcmsBasicTest.php
+9
-0
No files found.
tests/src/Functional/UwWcmsBasicTest.php
View file @
f2c62dc4
...
@@ -1436,9 +1436,18 @@ class UwWcmsBasicTest extends BrowserTestBase {
...
@@ -1436,9 +1436,18 @@ class UwWcmsBasicTest extends BrowserTestBase {
foreach
(
$roles
as
$role
)
{
foreach
(
$roles
as
$role
)
{
$this
->
drupalLogin
(
$this
->
drupalUsers
[
$role
]);
$this
->
drupalLogin
(
$this
->
drupalUsers
[
$role
]);
$this
->
drupalGet
(
'dashboard/my_dashboard'
);
$this
->
drupalGet
(
'dashboard/my_dashboard'
);
if
(
$role
!=
'authenticated user'
)
{
if
(
$role
!=
'authenticated user'
)
{
$this
->
assertSession
()
->
statusCodeEquals
(
200
);
$this
->
assertSession
()
->
statusCodeEquals
(
200
);
$this
->
assertSession
()
->
pageTextContains
(
"Who's online"
);
$this
->
assertSession
()
->
pageTextContains
(
"Who's online"
);
if
(
$role
==
'administrator'
||
$role
==
'uw_role_site_owner'
)
{
$this
->
assertSession
()
->
linkExists
(
'People'
);
$this
->
assertSession
()
->
linkExists
(
'Reports'
);
}
else
{
$this
->
assertSession
()
->
linkNotExists
(
'People'
);
$this
->
assertSession
()
->
linkNotExists
(
'Reports'
);
}
}
}
else
{
else
{
$this
->
assertSession
()
->
statusCodeEquals
(
403
);
$this
->
assertSession
()
->
statusCodeEquals
(
403
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment