Skip to content

Commit

Permalink
Wrote passing test for falls back to first h-card
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabywalters committed Jun 22, 2013
1 parent 236685c commit 9c43741
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
16 changes: 8 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion test/CleanerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,13 @@ public function testGetAuthorFindsSeparateHCardWithSameDomain() {
}

public function testGetAuthorFallsBackToFirstHCard() {
$this->markTestSkipped();
$cards = [$this->mf('h-card', ['name' => 'Bill']), $this->mf('h-card', ['name' => 'James'])];
$entry = $this->mf('h-entry', ['name' => 'Entry']);
$mfs = ['items' => $cards];

$result = getAuthor($entry, $mfs);

$this->assertEquals($cards[0], $result);
}

public function testGetAuthorFindsAuthorWithUrlOfPageRelAuthor() {
Expand Down

0 comments on commit 9c43741

Please sign in to comment.