| @@ 12-18 (lines=7) @@ | ||
| 9 | $flushedMockArray = $this->getServiceTest()->getRepositoryTest()->getFlushedMockArray(); |
|
| 10 | $mockArray = $this->getServiceTest()->getRepositoryTest()->getMockArray(); |
|
| 11 | ||
| 12 | foreach ($this->getController()->getMainService()->getMainRepository()->createEntity()->getOnlyUpdate() as $key) { |
|
| 13 | if (is_bool($flushedMockArray[$key])) { |
|
| 14 | $flushedMockArray[$key] = !$flushedMockArray[$key]; |
|
| 15 | } else { |
|
| 16 | $flushedMockArray[$key] = $mockArray[$key]; |
|
| 17 | } |
|
| 18 | } |
|
| 19 | ||
| 20 | $response = $this->curlHelper |
|
| 21 | ->setPosFixUrl('/'.$flushedMockArray['id']) |
|
| @@ 12-18 (lines=7) @@ | ||
| 9 | $flushedMockArray = $this->getRepositoryTest()->getFlushedMockArray(); |
|
| 10 | $mockArray = $this->getRepositoryTest()->getMockArray(); |
|
| 11 | ||
| 12 | foreach ($this->getService()->getMainRepository()->createEntity()->getOnlyUpdate() as $key) { |
|
| 13 | if (is_bool($flushedMockArray[$key])) { |
|
| 14 | $flushedMockArray[$key] = !$flushedMockArray[$key]; |
|
| 15 | } else { |
|
| 16 | $flushedMockArray[$key] = $mockArray[$key]; |
|
| 17 | } |
|
| 18 | } |
|
| 19 | ||
| 20 | $entity = $this->getService() |
|
| 21 | ->update($flushedMockArray['id'], $flushedMockArray) |
|