Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
digit-joinup-reference
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ec-europa
digit-joinup-reference
Commits
0deca4fc
Commit
0deca4fc
authored
5 months ago
by
Claudiu Cristea
Browse files
Options
Downloads
Patches
Plain Diff
ISAICP-9138: Unused step definitions.
parent
85290156
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!195
Release 2.1.0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/src/Context/JoinupUserContext.php
+0
-20
0 additions, 20 deletions
tests/src/Context/JoinupUserContext.php
tests/src/Context/RdfContext.php
+0
-24
0 additions, 24 deletions
tests/src/Context/RdfContext.php
with
0 additions
and
44 deletions
tests/src/Context/JoinupUserContext.php
+
0
−
20
View file @
0deca4fc
...
...
@@ -253,24 +253,4 @@ protected function getOneTimeLoginUrl(UserInterface $account): string {
])
->
toString
();
}
/**
* Asserts list of users with the given name doesn't exist.
*
* Table format:
* | name |
* | user1 |
* | user2 |
* | user3 |
*
* @param \Behat\Gherkin\Node\TableNode $usersTable
* A table containing the usernames to check.
*
* @Then the following users should be canceled:
*/
public
function
assertUsersAreCanceled
(
TableNode
$usersTable
):
void
{
foreach
(
$usersTable
->
getHash
()
as
$userData
)
{
$this
->
assertUserStatus
(
$userData
[
'name'
],
'cancelled'
);
}
}
}
This diff is collapsed.
Click to expand it.
tests/src/Context/RdfContext.php
+
0
−
24
View file @
0deca4fc
...
...
@@ -333,28 +333,4 @@ public function assertNoTriplesOfUri(string $property, string $uri, string $grap
Assert
::
assertCount
(
0
,
$results
,
"There are triples with
$property
$uri
in the
$graph
graph. Results found: "
.
implode
(
', '
,
$messages
));
}
/**
* Asserts that there are no duplicate memberships in the database.
*
* @todo Remove this in ISAICP-8376.
*
* @Given /^there are no duplicate memberships$/
*/
public
function
thereAreNoDuplicateMemberships
():
void
{
$query
=
<<<SQL
SELECT uid, entity_id from og_membership
GROUP BY uid, entity_id
HAVING COUNT(*) > 1
SQL;
$connection
=
\Drupal
::
getContainer
()
->
get
(
'database'
);
$results
=
$connection
->
query
(
$query
);
$messages
=
[];
foreach
(
$results
as
$result
)
{
$messages
[]
=
sprintf
(
'%s %s'
,
$result
->
uid
,
$result
->
entity_id
);
}
Assert
::
assertCount
(
0
,
$results
,
"There are duplicate memberships in the database. Results found: "
.
implode
(
', '
,
$messages
));
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment