getAppEntityFromId example

public function testGetAppEntityFromTechnicalName(): void
    {
        $app = $this->extensionDataProvider->getAppEntityFromTechnicalName('TestApp', $this->context);

        static::assertEquals('TestApp', $app->getName());
    }

    public function testGetAppEntityFromId(): void
    {
        $installedApp = $this->extensionDataProvider->getAppEntityFromTechnicalName('TestApp', $this->context);

        $app = $this->extensionDataProvider->getAppEntityFromId($installedApp->getId()$this->context);
        static::assertEquals(
            $installedApp,
            $app
        );
    }

    public function testGetAppEntityFromTechnicalNameThrowsWithoutMajorFlag(): void
    {
        Feature::skipTestIfActive('V6_6_0_0', $this);

        static::expectException(ExtensionNotFoundException::class);
        
Home | Imprint | This part of the site doesn't use cookies.