Code Duplication    Length = 10-10 lines in 2 locations

tests/TranslatableUnitTest.php 1 location

@@ 206-215 (lines=10) @@
203
	}
204
205
206
	public function testSimilarNullFields() {
207
		$fp = $this->objFromFixture('FlickrPhotoTO', 'photo0076');
208
		$es = new ElasticSearcher();
209
		$es->setClasses('FlickrPhotoTO');
210
		try {
211
			$paginated = $es->moreLikeThis($fp, null, true);
212
		} catch (InvalidArgumentException $e) {
213
			$this->assertEquals('Fields cannot be null', $e->getMessage());
214
		}
215
	}
216
217
218
	public function testSimilarNullItem() {

tests/ElasticSearcherUnitTest.php 1 location

@@ 167-176 (lines=10) @@
164
	}
165
166
167
	public function testSimilarNullFields() {
168
		$fp = $this->objFromFixture('FlickrPhotoTO', 'photo0076');
169
		$es = new ElasticSearcher();
170
		$es->setClasses('FlickrPhotoTO');
171
		try {
172
			$paginated = $es->moreLikeThis($fp, null, true);
173
		} catch (InvalidArgumentException $e) {
174
			$this->assertEquals('Fields cannot be null', $e->getMessage());
175
		}
176
	}
177
178
179
	public function testSimilarNullItem() {