/** * Check the correct result for an existing option */ public function testGetPostMeta() { $postMeta = $this->getMock('Ekino\\WordpressBundle\\Entity\\PostMeta'); $this->postMetaManager->expects($this->once())->method('getPostMeta')->with($this->equalTo(12), $this->equalTo('meta-test'), $this->equalTo(true))->will($this->returnValue($postMeta)); $result = $this->extension->getPostMeta(12, 'meta-test', true); $this->assertEquals($postMeta, $result); }
/** * Check the correct result for an existing option */ public function testGetPostMeta() { $this->postMetaManager->expects($this->once())->method('getPostMeta'); $this->extension->getPostMeta(12, 'meta-test', true); }