Add tests for user logouts when user is removed #1419
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
ci.yml
on: push
Matrix: behat-lowest-deps
Matrix: behat-symfony-next
Matrix: behat
Matrix: php-cs-fixer
Matrix: phpunit-lowest-deps
Matrix: phpunit-symfony-next
Matrix: phpunit
Annotations
1 error and 10 warnings
|
Behat (Symfony 7.3) (PHP 8.4)
Process completed with exit code 1.
|
|
PHPUnit (Symfony 7.3) (PHP 8.4):
src/Entity/User/AbstractUser.php#L207
Escaped Mutant for Mutator "IfNegation":
@@ @@
public function setPlainPassword(?string $plainPassword): self
{
$this->plainPassword = $plainPassword;
- if ($plainPassword) {
+ if (!$plainPassword) {
// Needs to update mapped field to trigger update event which will encode the plain password
$this->passwordUpdatedAt = new \DateTime();
}
|
|
PHPUnit (Symfony 7.3) (PHP 8.4):
src/Entity/User/AbstractUser.php#L156
Escaped Mutant for Mutator "IfNegation":
@@ @@
public function setEmailAddress(?string $emailAddress): self
{
$this->emailAddress = $emailAddress;
- if ($emailAddress) {
+ if (!$emailAddress) {
$this->emailLastUpdatedAt = new \DateTime();
}
return $this;
|
|
PHPUnit (Symfony 7.3) (PHP 8.4):
src/ApiPlatform/Metadata/Resource/RoutingPrefixResourceMetadataCollectionFactory.php#L79
Escaped Mutant for Mutator "SpreadAssignment":
@@ @@
* @var Operation $oldOperation
*/
foreach ($oldOperations as $key => $oldOperation) {
- $subRoutePrefixParts = [...$routePrefixParts];
+ $subRoutePrefixParts = $routePrefixParts;
if ($currentRoutePrefix = $oldOperation->getRoutePrefix()) {
$subRoutePrefixParts[] = trim($currentRoutePrefix, '/');
$subRoutePrefix = '/' . implode('/', $subRoutePrefixParts);
|
|
PHPUnit (Symfony 7.3) (PHP 8.4):
src/ApiPlatform/Metadata/Resource/RoutingPrefixResourceMetadataCollectionFactory.php#L79
Escaped Mutant for Mutator "SpreadOneItem":
@@ @@
* @var Operation $oldOperation
*/
foreach ($oldOperations as $key => $oldOperation) {
- $subRoutePrefixParts = [...$routePrefixParts];
+ $subRoutePrefixParts = [[...$routePrefixParts][0]];
if ($currentRoutePrefix = $oldOperation->getRoutePrefix()) {
$subRoutePrefixParts[] = trim($currentRoutePrefix, '/');
$subRoutePrefix = '/' . implode('/', $subRoutePrefixParts);
|
|
PHPUnit (Symfony 7.3) (PHP 8.4):
src/ApiPlatform/Metadata/Resource/RoutingPrefixResourceMetadataCollectionFactory.php#L78
Escaped Mutant for Mutator "Foreach_":
@@ @@
* @var string $key
* @var Operation $oldOperation
*/
- foreach ($oldOperations as $key => $oldOperation) {
+ foreach ([] as $key => $oldOperation) {
$subRoutePrefixParts = [...$routePrefixParts];
if ($currentRoutePrefix = $oldOperation->getRoutePrefix()) {
$subRoutePrefixParts[] = trim($currentRoutePrefix, '/');
|
|
PHPUnit (Symfony 7.3) (PHP 8.4):
src/ApiPlatform/Metadata/Resource/RoutingPrefixResourceMetadataCollectionFactory.php#L66
Escaped Mutant for Mutator "SpreadAssignment":
@@ @@
$resources = [];
/** @var ApiResource $resourceMetadatum */
foreach ($resourceMetadata as $i => $resourceMetadatum) {
- $finalRoutePrefixParts = [...$routePrefixParts];
+ $finalRoutePrefixParts = $routePrefixParts;
if ($currentRoutePrefix = $resourceMetadatum->getRoutePrefix()) {
$finalRoutePrefixParts[] = trim($currentRoutePrefix, '/');
}
|
|
PHPUnit (Symfony 7.3) (PHP 8.4):
src/ApiPlatform/Metadata/Resource/RoutingPrefixResourceMetadataCollectionFactory.php#L66
Escaped Mutant for Mutator "SpreadOneItem":
@@ @@
$resources = [];
/** @var ApiResource $resourceMetadatum */
foreach ($resourceMetadata as $i => $resourceMetadatum) {
- $finalRoutePrefixParts = [...$routePrefixParts];
+ $finalRoutePrefixParts = [[...$routePrefixParts][0]];
if ($currentRoutePrefix = $resourceMetadatum->getRoutePrefix()) {
$finalRoutePrefixParts[] = trim($currentRoutePrefix, '/');
}
|
|
PHPUnit (Symfony 7.3) (PHP 8.4):
src/ApiPlatform/Metadata/Resource/RoutingPrefixResourceMetadataCollectionFactory.php#L65
Escaped Mutant for Mutator "Foreach_":
@@ @@
{
$resources = [];
/** @var ApiResource $resourceMetadatum */
- foreach ($resourceMetadata as $i => $resourceMetadatum) {
+ foreach ([] as $i => $resourceMetadatum) {
$finalRoutePrefixParts = [...$routePrefixParts];
if ($currentRoutePrefix = $resourceMetadatum->getRoutePrefix()) {
$finalRoutePrefixParts[] = trim($currentRoutePrefix, '/');
|
|
PHPUnit (Symfony 7.3) (PHP 8.4):
src/ApiPlatform/Metadata/Resource/RoutingPrefixResourceMetadataCollectionFactory.php#L49
Escaped Mutant for Mutator "IfNegation":
@@ @@
// underscores for core resources
$reflection = new \ReflectionClass($resourceClass);
$namespace = $reflection->getNamespaceName();
- if (preg_match("/Silverback\\\\ApiComponentsBundle\\\\(?!Test)[\\w]+/", $namespace)) {
+ if (!preg_match("/Silverback\\\\ApiComponentsBundle\\\\(?!Test)[\\w]+/", $namespace)) {
$routePrefixParts[] = '_';
}
}
|
|
PHPUnit (Symfony 7.3) (PHP 8.4):
src/ApiPlatform/Metadata/Resource/RoutingPrefixResourceMetadataCollectionFactory.php#L43
Escaped Mutant for Mutator "ElseIfNegation":
@@ @@
$routePrefixParts = [];
if (is_subclass_of($resourceClass, AbstractComponent::class)) {
$routePrefixParts[] = 'component';
- } elseif (is_subclass_of($resourceClass, AbstractPageData::class)) {
+ } elseif (!is_subclass_of($resourceClass, AbstractPageData::class)) {
$routePrefixParts[] = 'page_data';
} else {
// underscores for core resources
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
behat-logs-php8.3
Expired
|
8 KB |
sha256:1b52bf4c3340dc379e3581ad61bce85f978c76985f8ff1db4a5acdea4abcaf5e
|
|
|
behat-logs-php8.4
Expired
|
7.99 KB |
sha256:554d5645b971ae177430ec2c6fd0cdcecd8b0effe40c8179d2d0f6d9eaada4cc
|
|
|
behat-logs-php8.4-lowest-deps
Expired
|
6.65 KB |
sha256:ba3951e9d564ecfd711cfc365e68d873a159aa8268b8702a2a461a64aaf33378
|
|
|
behat-logs-php8.4-symfony7.4
Expired
|
9.01 KB |
sha256:bae9ec19fe2b292cdb24e3a3563535e631bf6ddb65dc7b6c4c1a2a03cd2aa169
|
|
|
infection-logs-php8.4
Expired
|
4.08 KB |
sha256:217af6deca98cae3f0be1ada9ade04ae3fe437dbc49c16c3a627b03b981949a0
|
|
|
phpunit-logs-php8.3
Expired
|
3.7 KB |
sha256:4243f7b97148764dea229ca4113f0b1f6963a8500f261ab5a2cf1979cc676ed5
|
|
|
phpunit-logs-php8.4
Expired
|
630 KB |
sha256:a799c95796b5058532c5637b9600a82a786b66a15f4d7aea42650af43a516767
|
|
|
phpunit-logs-php8.4-lowest-deps
Expired
|
3.69 KB |
sha256:4ddb7e96ddd0b3315a107a907d4c52c58de694ef33b6ee597d36934a07daf56d
|
|
|
phpunit-logs-php8.4-symfony7.4
Expired
|
3.69 KB |
sha256:fe94ec41eb2c1798ba023950bdc56a67e464f8ac514d24ef542600c62568cbe2
|
|