function testImageMeta() { $pid = $this->factory->post->create(); $filename = self::copyTestImage('arch.jpg'); $attachment = array('post_title' => 'The Arch', 'post_content' => ''); $iid = wp_insert_attachment($attachment, $filename, $pid); update_post_meta($iid, 'architect', 'Eero Saarinen'); $image = new TimberImage($iid); $this->assertEquals('Eero Saarinen', $image->meta('architect')); $this->assertEquals('Eero Saarinen', $image->architect); }