Skip to content

Commit 19ef94f

Browse files
authored
Merge pull request #146 from gRegorLove/issue116
Update test and add fix for #116
2 parents b35de56 + d63afe0 commit 19ef94f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Mf2/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,7 @@ public function query($expression, $context = null) {
19291929
),
19301930
'hreview' => array(
19311931
'summary' => array(
1932-
'replace' => 'p-summary'
1932+
'replace' => 'p-name'
19331933
),
19341934
# fn: see item.fn below
19351935
# photo: see item.photo below

tests/Mf2/ClassicMicroformatsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,13 +759,13 @@ public function testParsesClassicHreview() {
759759

760760
$this->assertArrayNotHasKey('reviewer', $result['items'][0]['properties']);
761761
$this->assertArrayNotHasKey('description', $result['items'][0]['properties']);
762-
$this->assertArrayNotHasKey('name', $result['items'][0]['properties']);
762+
$this->assertArrayNotHasKey('summary', $result['items'][0]['properties']);
763763

764764
$this->assertArrayHasKey('author', $result['items'][0]['properties']);
765765
$this->assertArrayHasKey('item', $result['items'][0]['properties']);
766766
$this->assertArrayHasKey('content', $result['items'][0]['properties']);
767767
$this->assertArrayHasKey('rating', $result['items'][0]['properties']);
768-
$this->assertArrayHasKey('summary', $result['items'][0]['properties']);
768+
$this->assertArrayHasKey('name', $result['items'][0]['properties']);
769769

770770
$this->assertCount(1, $result['items'][0]['properties']['author'][0]['type']);
771771
$this->assertCount(1, $result['items'][0]['properties']['item'][0]['type']);

0 commit comments

Comments
 (0)