Code Duplication    Length = 9-10 lines in 2 locations

tests/SearchableTest.php 1 location

@@ 13-22 (lines=10) @@
10
class SearchableTest extends ElasticsearchBaseTest {
11
	public static $fixture_file = 'elastica/tests/ElasticaTest.yml';
12
13
	public function setUp() {
14
		// this needs to be called in order to create the list of searchable
15
		// classes and fields that are available.  Simulates part of a build
16
		$classes = array('SearchableTestPage', 'SiteTree', 'Page', 'FlickrPhotoTO', 'FlickrSetTO',
17
			'FlickrTagTO', 'FlickrAuthorTO', 'FlickrSetTO');
18
		$this->requireDefaultRecordsFrom = $classes;
19
20
		// load fixtures
21
		parent::setUp();
22
	}
23
24
25

tests/TranslatableSearchableTest.php 1 location

@@ 24-32 (lines=9) @@
21
	}
22
23
24
	public function setUp() {
25
		// this needs to be called in order to create the list of searchable
26
		// classes and fields that are available.  Simulates part of a build
27
		$classes = array('SearchableTestPage', 'SiteTree', 'Page', 'FlickrPhotoTO', 'FlickrSetTO',
28
			'FlickrTagTO', 'FlickrAuthorTO', 'FlickrSetTO');
29
		$this->requireDefaultRecordsFrom = $classes;
30
		// load fixtures
31
		parent::setUp();
32
	}
33
34
35