public function testOverride()
 {
     $engine = new OverrideDiscoveryEngine();
     $input = FakeNode::createDummy();
     $engine->buildParams($input);
     $this->assertCount(2, $engine->parameters());
     $this->assertEquals("php", $engine->parameters()['language']);
     $this->assertEquals("recommendation", $engine->recoResultName());
     $this->assertEquals("rate", $engine->scoreResultName());
     $this->assertEquals("source", $engine->idParamName());
     $this->assertEquals(10, $engine->defaultScore());
 }
 public function testOverride()
 {
     $engine = new OverrideDiscoveryEngine();
     $input = FakeNode::createDummy();
     $context = new SimpleContext(new SimpleConfig());
     $this->assertCount(2, $engine->discoveryQuery($input, $context)->parameters());
     $this->assertEquals($input->identity(), $engine->discoveryQuery($input, $context)->parameters()['input']);
     $this->assertEquals("recommendation", $engine->recoResultName());
     $this->assertEquals("rate", $engine->scoreResultName());
     $this->assertEquals("source", $engine->idParamName());
     $this->assertEquals(10, $engine->defaultScore());
 }