summaryrefslogtreecommitdiff
path: root/vendor/ruflin/elastica/test/lib/Elastica/Test/Base.php
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-05-01 15:31:33 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-05-01 15:31:33 -0400
commit150f94f051128f367bc89f6b7e5f57eb2a69fc62 (patch)
tree181f454813b310ee97385058c6c6f2e3f34d5fd8 /vendor/ruflin/elastica/test/lib/Elastica/Test/Base.php
parent7e85254903c7c0cb49e381f16b18441ea7b058cc (diff)
parent80f7dc77d430774192b929d780f96260066df2ee (diff)
Merge commit '80f7dc'
# Conflicts: # extensions/ArchInterWiki.sql
Diffstat (limited to 'vendor/ruflin/elastica/test/lib/Elastica/Test/Base.php')
-rw-r--r--vendor/ruflin/elastica/test/lib/Elastica/Test/Base.php31
1 files changed, 0 insertions, 31 deletions
diff --git a/vendor/ruflin/elastica/test/lib/Elastica/Test/Base.php b/vendor/ruflin/elastica/test/lib/Elastica/Test/Base.php
deleted file mode 100644
index 55cd8873..00000000
--- a/vendor/ruflin/elastica/test/lib/Elastica/Test/Base.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-namespace Elastica\Test;
-
-use Elastica\Client;
-
-class Base extends \PHPUnit_Framework_TestCase
-{
- protected function _getClient()
- {
- return new Client(array(
- 'host' => getenv('ES_HOST') ?: 'localhost',
- 'port' => getenv('ES_PORT') ?: 9200,
- ));
- }
-
- /**
- * @param string $name Index name
- * @param bool $delete Delete index if it exists
- * @param int $shards Number of shards to create
- * @return \Elastica\Index
- */
- protected function _createIndex($name = 'test', $delete = true, $shards = 1)
- {
- $client = $this->_getClient();
- $index = $client->getIndex('elastica_' . $name);
- $index->create(array('index' => array('number_of_shards' => $shards, 'number_of_replicas' => 0)), $delete);
-
- return $index;
- }
-}