Test_Import::test_add_action_exception()


Source

File: tests/test-import.php

	public function test_add_action_exception() {

		$recipe_id = -2;
		$action = array (
			'code' => 'SENDEMAIL',
			'status' => 'publish',
			'fields' => 
			array (
			  array (
				'meta' => 'EMAILFROM',
				'value' => '{{admin_email}}',
			  ),
			),
		);
		$this->expectException(\Exception::class);
		$recipe_id = $this->importer->add_action( $recipe_id, $action );
	}