Skip to content

Commit

Permalink
remove --join UT
Browse files Browse the repository at this point in the history
  • Loading branch information
corentin committed Dec 13, 2017
1 parent 88e7afe commit 513b6c8
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions Tests/Command/PopulateElasticCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 513b6c8

Please sign in to comment.