getSnippetFixtures example

$this->getConnectionMock('en-GB', [])
        );

        $snippets = $snippetFinder->findSnippets('en-GB');
        static::assertArrayNotHasKey('my-custom-snippet-key', $snippets);
    }

    public function testFindSnippetsFromApp(): void
    {
        $snippetFinder = new SnippetFinder(
            $this->getKernelWithNoPlugins(),
            $this->getConnectionMock('en-GB', $this->getSnippetFixtures())
        );

        $snippets = $snippetFinder->findSnippets('en-GB');

        $expectedSnippets = $this->getSnippetFixtures();
        $key = array_key_first($expectedSnippets);
        static::assertEquals($expectedSnippets[$key]$snippets[$key]);
    }

    /** * @dataProvider validateAppSnippetsExceptionDataProvider * * @param array<string, mixed> $existingSnippets * @param array<string, mixed> $appSnippets * @param list<string> $duplicatedSnippets */
Home | Imprint | This part of the site doesn't use cookies.