本文整理匯總了PHP中Mockery\Mock::setVenuePropertiesFromForm方法的典型用法代碼示例。如果您正苦於以下問題:PHP Mock::setVenuePropertiesFromForm方法的具體用法?PHP Mock::setVenuePropertiesFromForm怎麽用?PHP Mock::setVenuePropertiesFromForm使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Mockery\Mock
的用法示例。
在下文中一共展示了Mock::setVenuePropertiesFromForm方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: testSetVenuePropertiesFromFormProcessResultFailure
public function testSetVenuePropertiesFromFormProcessResultFailure()
{
$dataVenue = array('id' => '44', 'name' => 'Black Palace', 'address_1' => '2229 N Ave West');
$dataForm = array('name' => 'Wordens', 'address_1' => '', 'address_2' => '', 'city' => '', 'state' => '', 'postal_code' => '', 'country' => '', 'url' => array());
$venueModel = $this->getMockVenuesMapper()->createModelFromData($dataVenue);
/*@var $venueModel \Venues\Model\VenueModel */
$returnedProcessResults = $this->venuesProcess->setVenuePropertiesFromForm($venueModel, $dataForm);
$this->assertEquals($this->getProcessResultFailure('There was an error with this address. Please try again.'), $returnedProcessResults);
}