* * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace FOS\ElasticaBundle\Tests\Functional; use Symfony\Bundle\FrameworkBundle\Client; /** * @group functional */ class MappingToElasticaTest extends WebTestCase { public function testReset() { $client = $this->createClient(array('test_case' => 'Basic')); $resetter = $this->getResetter($client); $resetter->resetIndex('index'); $resetter->resetIndexType('index', 'type'); } /** * @param Client $client * @return \FOS\ElasticaBundle\Resetter $resetter */ private function getResetter(Client $client) { return $client->getContainer()->get('fos_elastica.resetter'); } protected function setUp() { parent::setUp(); $this->deleteTmpDir('Basic'); } protected function tearDown() { parent::tearDown(); $this->deleteTmpDir('Basic'); } }