Skip to content

Commit

Permalink
Add multi-array test
Browse files Browse the repository at this point in the history
  • Loading branch information
dshanske committed Nov 4, 2017
1 parent 41f3a81 commit a9f0ffc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test-mf2-post.php
Expand Up @@ -29,5 +29,16 @@ public function test_set_and_get_published() {
$mf2_post = new MF2_Post( $post );
$this->assertEquals( '2016-01-01T12:01:23+00:00', $mf2_post->get( 'published', true ) );
}
public function test_set_and_get_multi_array() {
$post = self::factory()->post->create();
$mf2_post = new MF2_Post( $post );
$mf2_post->set( array(
'checkin' => 'Blah',
'in_reply_to' => 'Nothing'
) );
$mf2_post = new MF2_Post( $post );
$this->assertEquals( 'Blah', $mf2_post->get( 'checkin', true ) );
}

}

0 comments on commit a9f0ffc

Please sign in to comment.