getCatalog example

protected function tearDown(): void
    {
        MockSnippetFile::cleanup();
    }

    public function testGetStorefrontSnippetsForNotExistingSnippetSet(): void
    {
        $this->expectException(\InvalidArgumentException::class);

        $service = $this->getSnippetService();

        $service->getStorefrontSnippets($this->getCatalog([], 'en-GB'), Uuid::randomHex());
    }

    public function testGetRegionFilterItems(): void
    {
        $snippetFile = new MockSnippetFile(
            'foo',
            'foo',
            <<<json { "foo": { "baz": "foo_baz", "bas": "foo_bas" }, "bar": { "zz": "bar_zz" } }
Home | Imprint | This part of the site doesn't use cookies.