Permalink
Browse files

Update the test_create method to pull out the correct language attrib…

…ute.
  • Loading branch information...
1 parent 4b17c2a commit 838d924b10e08db24c72fb2564479a3210cadfe3 Mathew Davies committed Feb 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/sitemap/NewsTest.php
@@ -329,7 +329,7 @@ public function test_create($pub, $lang, $access, $genre, $date, $title, $tags)
$xml = simplexml_import_dom($return);
$this->assertEquals($pub, (string) $xml->{'news:publication'}->{'news:name'});
- $this->assertEquals($lang, (string) $xml->{'news:publication'}->{'news:lang'});
+ $this->assertEquals($lang, (string) $xml->{'news:publication'}->{'news:language'});
$this->assertEquals($access, (string) $xml->{'news:access'});
$this->assertEquals(implode(',', $genre), (string) $xml->{'news:genres'});
$this->assertEquals(Sitemap::date_format($date), (string) $xml->{'news:publication_date'});

0 comments on commit 838d924

Please sign in to comment.