public function testLangAlternates() { $page = new SeoPage(); $page->setLangAlternates(array('http://example.com/' => 'x-default')); $page->addLangAlternate('http://example.com/en-us', 'en-us'); $expected = array('http://example.com/' => 'x-default', 'http://example.com/en-us' => 'en-us'); $this->assertEquals($expected, $page->getLangAlternates()); $this->assertTrue($page->hasLangAlternate('http://example.com/')); $page->removeLangAlternate('http://example.com/'); $this->assertFalse($page->hasLangAlternate('http://example.com/')); }