public function ToolsTest::testToolsService in MongoDB 8.2
@covers ::__construct
File
- modules/
mongodb/ tests/ src/ Kernel/ ToolsTest.php, line 22
Class
- ToolsTest
- Class CommandsTest.
Namespace
Drupal\Tests\mongodb\KernelCode
public function testToolsService() {
$tools = $this->container
->get(MongoDb::SERVICE_TOOLS);
$this
->assertInstanceOf(Tools::class, $tools, "Tools service is available");
$this
->assertTrue(method_exists($tools, 'find'));
$this
->assertTrue(method_exists($tools, 'settings'));
}