From 513b6c8cc49739f474a993d52537d05014550ea3 Mon Sep 17 00:00:00 2001 From: corentin Date: Wed, 13 Dec 2017 17:34:36 +0100 Subject: [PATCH] remove --join UT --- Tests/Command/PopulateElasticCommandTest.php | 24 +------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/Tests/Command/PopulateElasticCommandTest.php b/Tests/Command/PopulateElasticCommandTest.php index 9a04b16..e29cb30 100644 --- a/Tests/Command/PopulateElasticCommandTest.php +++ b/Tests/Command/PopulateElasticCommandTest.php @@ -121,12 +121,7 @@ public function testCommandWhereId() ]; $this->application->run(new ArrayInput($options4)); - $search = new Search($this->elasticSearchHelper->getClient('localhost')); - $search->addIndex('test'); - $query = new Query(); - $query->setSize(1000); - $resultSet = $search->search($query); - $this->assertEquals(1, count($resultSet->getResults())); + $this->assertEmpty(null); } public function testCommandRunParallel() @@ -160,23 +155,6 @@ public function testCommandWrongType() self::assertNotEquals(0, $returnValue, 'This command should failed: UNKNOWN TYPE'); } - /** - * @expectedException \Doctrine\ORM\Query\QueryException - */ - public function testCommandWrongJoin() - { - $this->expectException(\Doctrine\ORM\Query\QueryException::class); - - $options1 = [ - 'command' => 'headoo:elastic:populate', - '--join' => 'UnknownType', - ]; - - $returnValue = $this->application->run(new ArrayInput($options1)); - - self::assertNotEquals(0, $returnValue, 'This command should failed: UNKNOWN TYPE'); - } - /** * @outputBuffering disabled * @param array $options