public function CommandHelperTest::testServerDisableCommand in Search API 8
Tests the server disable command.
@covers ::disableServerCommand
File
- tests/
src/ Kernel/ System/ CommandHelperTest.php, line 330
Class
- CommandHelperTest
- Tests Search API functionality that gets executed by console utilities.
Namespace
Drupal\Tests\search_api\Kernel\SystemCode
public function testServerDisableCommand() {
$this->systemUnderTest
->disableServerCommand('test_server');
/** @var \Drupal\search_api\ServerInterface $server */
$server = Server::load('test_server');
$this
->assertFalse($server
->status());
$this
->expectException(ConsoleException::class);
$this->systemUnderTest
->enableServerCommand('foo');
}