client = static::createClient(); } public function testAboutPageRenders(): void { $this->client->request('GET', '/' . AboutController::SLUG); $html = $this->client->getResponse()->getContent(); self::assertSame(200, $this->client->getResponse()->getStatusCode()); self::assertStringContainsString('

دربارهٔ کلینیک پرو

', $html); self::assertStringContainsString('دربارهٔ ما | کلینیک پرو', $html); self::assertStringContainsString('شرکت توسعه فناوری اطلاعات حامی', $html); } public function testHeaderLinksToAbout(): void { $this->client->request('GET', '/'); self::assertStringContainsString('href="/درباره-ما"', $this->client->getResponse()->getContent()); } public function testSitemapListsAbout(): void { $this->client->request('GET', '/sitemap.xml'); self::assertStringContainsString(rawurlencode(AboutController::SLUG), $this->client->getResponse()->getContent()); } }