| @@ 103-113 (lines=11) @@ | ||
| 100 | $this->assertEquals(array("_id" => "doc_b"), $result[1]['value']); |
|
| 101 | } |
|
| 102 | ||
| 103 | public function testFetchReverseRelations2() |
|
| 104 | { |
|
| 105 | $this->addTestData(); |
|
| 106 | ||
| 107 | $view = $this->createDoctrineViewQuery(); |
|
| 108 | $result = $view->setStartKey( array("doc_d", "type_b") ) |
|
| 109 | ->setEndKey( array("doc_d", "type_b", "z") ) |
|
| 110 | ->execute(); |
|
| 111 | ||
| 112 | $this->assertEquals(array(), $result->toArray() ); |
|
| 113 | } |
|
| 114 | ||
| 115 | ||
| 116 | public function testFetchNoReverseRelations() |
|
| @@ 116-126 (lines=11) @@ | ||
| 113 | } |
|
| 114 | ||
| 115 | ||
| 116 | public function testFetchNoReverseRelations() |
|
| 117 | { |
|
| 118 | $this->addTestData(); |
|
| 119 | ||
| 120 | $view = $this->createDoctrineViewQuery(); |
|
| 121 | $result = $view->setStartKey( array("doc_c", "type_a") ) |
|
| 122 | ->setEndKey( array("doc_c", "type_a", "z") ) |
|
| 123 | ->execute(); |
|
| 124 | ||
| 125 | $this->assertEquals(array(), $result->toArray() ); |
|
| 126 | } |
|
| 127 | } |
|
| 128 | ||
| 129 | ||