| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | 2 | public function isFieldEqual(string $attributeId, $value, array $extraData = []): bool |
|
| 8 | { |
||
| 9 | 2 | $attributeManager = $this->comparisonManager->getAttributeManager(); |
|
| 10 | // Create an attribute out of the extra data we have and compare its retrieved value to the expected one |
||
| 11 | 2 | return $attributeManager->retrieveAttribute( |
|
| 12 | 2 | $attributeManager->getAttribute($attributeId), |
|
| 13 | 2 | $extraData['user'] |
|
| 14 | 2 | ) === $value; |
|
| 15 | } |
||
| 16 | } |
||
| 17 |