summaryrefslogtreecommitdiff
path: root/vendor/ruflin/elastica/test/lib/Elastica/Test/Exception/ResponseExceptionTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/ruflin/elastica/test/lib/Elastica/Test/Exception/ResponseExceptionTest.php')
-rw-r--r--vendor/ruflin/elastica/test/lib/Elastica/Test/Exception/ResponseExceptionTest.php25
1 files changed, 15 insertions, 10 deletions
diff --git a/vendor/ruflin/elastica/test/lib/Elastica/Test/Exception/ResponseExceptionTest.php b/vendor/ruflin/elastica/test/lib/Elastica/Test/Exception/ResponseExceptionTest.php
index 06b5462b..6fc975e7 100644
--- a/vendor/ruflin/elastica/test/lib/Elastica/Test/Exception/ResponseExceptionTest.php
+++ b/vendor/ruflin/elastica/test/lib/Elastica/Test/Exception/ResponseExceptionTest.php
@@ -1,14 +1,14 @@
<?php
-
namespace Elastica\Test\Exception;
use Elastica\Document;
use Elastica\Exception\ResponseException;
-use Elastica\Test\Base as BaseTest;
-class ResponseExceptionTest extends BaseTest
+class ResponseExceptionTest extends AbstractExceptionTest
{
-
+ /**
+ * @group functional
+ */
public function testCreateExistingIndex()
{
$this->_createIndex('woo', true);
@@ -22,15 +22,18 @@ class ResponseExceptionTest extends BaseTest
}
}
+ /**
+ * @group functional
+ */
public function testBadType()
{
- $index = $this->_createIndex('woo');
- $type = $index->getType('test');
+ $index = $this->_createIndex();
+ $type = $index->getType('test');
$type->setMapping(array(
'num' => array(
- 'type' => 'long'
- )
+ 'type' => 'long',
+ ),
));
try {
@@ -44,9 +47,12 @@ class ResponseExceptionTest extends BaseTest
}
}
+ /**
+ * @group functional
+ */
public function testWhatever()
{
- $index = $this->_createIndex('woo');
+ $index = $this->_createIndex();
$index->delete();
try {
@@ -56,5 +62,4 @@ class ResponseExceptionTest extends BaseTest
$this->assertEquals(404, $ex->getElasticsearchException()->getCode());
}
}
-
}