| @@ 66-86 (lines=21) @@ | ||
| 63 | /** |
|
| 64 | * @test |
|
| 65 | */ |
|
| 66 | public function multiplePathToAttributeDepth() |
|
| 67 | { |
|
| 68 | ||
| 69 | $result = $this->getMockConnector()->getByRef([ |
|
| 70 | 'rootDocumentEntityType' => 'Test', |
|
| 71 | 'rootDocumentId' => 'X', |
|
| 72 | 'path' => [ |
|
| 73 | [ |
|
| 74 | 'field' => 'multiplePathToAttributeDepth' |
|
| 75 | ], |
|
| 76 | [ |
|
| 77 | 'field' => 'field' |
|
| 78 | ], |
|
| 79 | [ |
|
| 80 | 'field' => 'field' |
|
| 81 | ] |
|
| 82 | ] |
|
| 83 | ]); |
|
| 84 | ||
| 85 | static::assertSame('value', $result); |
|
| 86 | } |
|
| 87 | ||
| 88 | /** |
|
| 89 | * @test |
|
| @@ 111-129 (lines=19) @@ | ||
| 108 | /** |
|
| 109 | * @test |
|
| 110 | */ |
|
| 111 | public function multiplePathToArrayObject() |
|
| 112 | { |
|
| 113 | ||
| 114 | $result = $this->getMockConnector()->getByRef([ |
|
| 115 | 'rootDocumentEntityType' => 'Test', |
|
| 116 | 'rootDocumentId' => 'X', |
|
| 117 | 'path' => [ |
|
| 118 | [ |
|
| 119 | 'field' => 'multiplePathToArrayObject', |
|
| 120 | ], |
|
| 121 | [ |
|
| 122 | 'field' => 'field', |
|
| 123 | 'objectId' => 'value' |
|
| 124 | ] |
|
| 125 | ] |
|
| 126 | ]); |
|
| 127 | ||
| 128 | static::assertSame(['_id' => 'value'], $result); |
|
| 129 | } |
|
| 130 | ||
| 131 | /** |
|
| 132 | * @return \Communibase\Connector |
|