Skip to content

Commit 460c688

Browse files
committed
added menu items with a link
1 parent db41cb7 commit 460c688

File tree

3 files changed

+108
-60
lines changed

3 files changed

+108
-60
lines changed

app/tests/StaticPageTest.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,22 @@ public function contentDataProvider()
4242
array('/en/contact/team', 'A team page'),
4343
);
4444
}
45+
46+
public function testMenu()
47+
{
48+
$client = $this->createClient();
49+
50+
$crawler = $client->request('GET', '/en/about');
51+
52+
$this->assertEquals(200, $client->getResponse()->getStatusCode());
53+
54+
$this->assertEquals('/en/contact/map', $crawler->selectLink('Map')->attr('href'), 'Page does not contain an a tag pointing to: /en/contact/map');
55+
$this->assertEquals('http://cmf.symfony.com', $crawler->selectLink('Website')->attr('href'), 'Page does not contain an a tag pointing to: cmf.symfony.com');
56+
$this->assertEquals('http://cmf.liip.ch', $crawler->selectLink('Demo')->attr('href'), 'Page does not contain an a tag pointing to: cmf.symfony.com');
57+
58+
$crawler = $client->request('GET', '/de/about');
59+
60+
$this->assertEquals(200, $client->getResponse()->getStatusCode());
61+
$this->assertEquals('http://cmf.symfony.com', $crawler->selectLink('Webseite')->attr('href'), 'Page does not contain an a tag pointing to: cmf.symfony.com');
62+
}
4563
}

composer.lock

Lines changed: 66 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)