diff --git a/Mf2/Parser.php b/Mf2/Parser.php index 72602f7..933f8b0 100644 --- a/Mf2/Parser.php +++ b/Mf2/Parser.php @@ -1929,7 +1929,7 @@ public function query($expression, $context = null) { ), 'hreview' => array( 'summary' => array( - 'replace' => 'p-summary' + 'replace' => 'p-name' ), # fn: see item.fn below # photo: see item.photo below diff --git a/tests/Mf2/ClassicMicroformatsTest.php b/tests/Mf2/ClassicMicroformatsTest.php index b785731..d00c580 100644 --- a/tests/Mf2/ClassicMicroformatsTest.php +++ b/tests/Mf2/ClassicMicroformatsTest.php @@ -759,13 +759,13 @@ public function testParsesClassicHreview() { $this->assertArrayNotHasKey('reviewer', $result['items'][0]['properties']); $this->assertArrayNotHasKey('description', $result['items'][0]['properties']); - $this->assertArrayNotHasKey('name', $result['items'][0]['properties']); + $this->assertArrayNotHasKey('summary', $result['items'][0]['properties']); $this->assertArrayHasKey('author', $result['items'][0]['properties']); $this->assertArrayHasKey('item', $result['items'][0]['properties']); $this->assertArrayHasKey('content', $result['items'][0]['properties']); $this->assertArrayHasKey('rating', $result['items'][0]['properties']); - $this->assertArrayHasKey('summary', $result['items'][0]['properties']); + $this->assertArrayHasKey('name', $result['items'][0]['properties']); $this->assertCount(1, $result['items'][0]['properties']['author'][0]['type']); $this->assertCount(1, $result['items'][0]['properties']['item'][0]['type']);