| @@ 73-85 (lines=13) @@ | ||
| 70 | /** |
|
| 71 | * @expectedException \InvalidArgumentException |
|
| 72 | */ |
|
| 73 | public function testFuckedUpConfigurationWithoutModel() { |
|
| 74 | $searchService = $this->getMockBuilder(AbstractSearchService::class)->getMockForAbstractClass(); |
|
| 75 | new EntityToDocumentMapper($searchService, array( |
|
| 76 | 'beer' => array( |
|
| 77 | 'mappings' => array( |
|
| 78 | 'title' => array( |
|
| 79 | 'propertyPath' => false |
|
| 80 | ) |
|
| 81 | ), |
|
| 82 | 'persistence' => array() |
|
| 83 | ) |
|
| 84 | )); |
|
| 85 | } |
|
| 86 | ||
| 87 | /** |
|
| 88 | * @expectedException \InvalidArgumentException |
|
| @@ 90-101 (lines=12) @@ | ||
| 87 | /** |
|
| 88 | * @expectedException \InvalidArgumentException |
|
| 89 | */ |
|
| 90 | public function testFuckedUpConfigurationWithoutPersistance() { |
|
| 91 | $searchService = $this->getMockBuilder(AbstractSearchService::class)->getMockForAbstractClass(); |
|
| 92 | new EntityToDocumentMapper($searchService, array( |
|
| 93 | 'beer' => array( |
|
| 94 | 'mappings' => array( |
|
| 95 | 'title' => array( |
|
| 96 | 'propertyPath' => false |
|
| 97 | ) |
|
| 98 | ) |
|
| 99 | ) |
|
| 100 | )); |
|
| 101 | } |
|
| 102 | ||
| 103 | public function testIsIndexable() { |
|
| 104 | $eh = $this->getEntityToDocumentMapper(); |
|