Skip to content

Commit

Permalink
metaタグのテストの Symfony4.4 対応
Browse files Browse the repository at this point in the history
  • Loading branch information
okazy committed Apr 6, 2021
1 parent ef3463d commit 2b3a2ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/Eccube/Tests/Web/TopControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

namespace Eccube\Tests\Web;

use Eccube\Entity\Page;
use Eccube\Repository\BaseInfoRepository;
use Eccube\Repository\PageRepository;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;

class TopControllerTest extends AbstractWebTestCase
{
Expand All @@ -39,7 +39,9 @@ public function testMetaTags()
{
// description を設定
$description = 'あのイーハトーヴォのすきとおった風、夏でも底に冷たさをもつ青いそら、うつくしい森で飾られたモリーオ市、郊外のぎらぎらひかる草の波。';
$page = $this->container->get(PageRepository::class)->getByUrl('homepage');
/** @var PageRepository $pageRepository */
$pageRepository = $this->entityManager->getRepository(Page::class);
$page = $pageRepository->getByUrl('homepage');
$page->setDescription($description);
$this->entityManager->flush();

Expand Down

0 comments on commit 2b3a2ca

Please sign in to comment.