You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							22 lines
						
					
					
						
							381 B
						
					
					
				
			
		
		
	
	
							22 lines
						
					
					
						
							381 B
						
					
					
				| <?php | |
|  | |
| namespace tests\_pages; | |
|  | |
| use yii\codeception\BasePage; | |
|  | |
| class ContactPage extends BasePage | |
| { | |
| 	public $route = 'site/contact'; | |
|  | |
| 	/** | |
| 	 * @param array $contactData | |
| 	 */ | |
| 	public function submit(array $contactData) | |
| 	{ | |
| 		$data = []; | |
| 		foreach ($contactData as $name => $value) { | |
| 			$data["ContactForm[$name]"] = $value; | |
| 		} | |
| 		$this->guy->submitForm('#contact-form', $data); | |
| 	} | |
| }
 | |
| 
 |