|
@@ 91-100 (lines=10) @@
|
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
|
| 91 |
|
public function testUnpublish() { |
| 92 |
|
$nDocsAtStart = $this->getNumberOfIndexedDocuments(); |
| 93 |
|
$this->checkNumberOfIndexedDocuments($nDocsAtStart); |
| 94 |
|
|
| 95 |
|
$fp = Page::get()->first(); |
| 96 |
|
$fp->doUnpublish(); |
| 97 |
|
|
| 98 |
|
$this->service->getIndex()->refresh(); |
| 99 |
|
$this->checkNumberOfIndexedDocuments($nDocsAtStart-1); |
| 100 |
|
} |
| 101 |
|
|
| 102 |
|
|
| 103 |
|
public function testDeleteFromSiteTree() { |
|
@@ 103-112 (lines=10) @@
|
| 100 |
|
} |
| 101 |
|
|
| 102 |
|
|
| 103 |
|
public function testDeleteFromSiteTree() { |
| 104 |
|
$nDocsAtStart = $this->getNumberOfIndexedDocuments(); |
| 105 |
|
$this->checkNumberOfIndexedDocuments($nDocsAtStart); |
| 106 |
|
|
| 107 |
|
$fp = Page::get()->first(); |
| 108 |
|
$fp->delete(); |
| 109 |
|
|
| 110 |
|
$this->service->getIndex()->refresh(); |
| 111 |
|
$this->checkNumberOfIndexedDocuments($nDocsAtStart-1); |
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
|
| 115 |
|
public function testDeleteDataObject() { |
|
@@ 115-124 (lines=10) @@
|
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
|
| 115 |
|
public function testDeleteDataObject() { |
| 116 |
|
$nDocsAtStart = $this->getNumberOfIndexedDocuments(); |
| 117 |
|
$this->checkNumberOfIndexedDocuments($nDocsAtStart); |
| 118 |
|
|
| 119 |
|
$fp = FlickrPhotoTO::get()->first(); |
| 120 |
|
$fp->delete(); |
| 121 |
|
|
| 122 |
|
$this->service->getIndex()->refresh(); |
| 123 |
|
$this->checkNumberOfIndexedDocuments($nDocsAtStart-1); |
| 124 |
|
} |
| 125 |
|
|
| 126 |
|
|
| 127 |
|
public function testBulkIndexing() { |