Skip to content

Commit

Permalink
Update the test_create method to pull out the correct language attrib…
Browse files Browse the repository at this point in the history
…ute.
  • Loading branch information
Mathew Davies committed Feb 5, 2012
1 parent d97d096 commit 58377cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/sitemap/NewsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'});
Expand Down

0 comments on commit 58377cb

Please sign in to comment.