| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | 1 | public function isFieldEqual($attributeId, $value, $extraData = []) { |
|
| 16 | 1 | $attributeManager = $this->comparisonManager->getAttributeManager(); |
|
| 17 | // Create an attribute out of the extra data we have and compare its retrieved value to the expected one |
||
| 18 | 1 | return $attributeManager->retrieveAttribute( |
|
| 19 | 1 | $attributeManager->getAttribute($attributeId), |
|
| 20 | 1 | null, |
|
| 21 | 1 | $extraData['resource'] |
|
| 22 | 1 | ) === $value; |
|
| 23 | } |
||
| 24 | } |
||
| 25 |