get(HandlerCollection::class); $collection = $handler->getCollection(); $this->assertNotEmpty($collection); } public function testGetHandler(): void { self::bootKernel(); $handler = self::getContainer()->get(HandlerCollection::class); $this->expectException(InvalidArgumentException::class); $handler->getHandler('bla bla'); $tool = $handler->getHandler('agenda'); $this->assertInstanceOf(AbstractTool::class, $tool); $this->assertInstanceOf(Agenda::class, $tool); } public function testRepositoryHandlers(): void { self::bootKernel(); $handler = self::getContainer()->get(HandlerCollection::class); $collection = $handler->getCollection(); $this->assertTrue(\count($collection) > 0); } }