Test_Import::test_add_trigger_exception()


Source

File: tests/test-import.php

	public function test_add_trigger_exception() {

		$recipe_id = -2;
		$trigger = array (
			'code' => 'VIEWPAGE',
			'status' => 'publish',
			'fields' => 
			array (
			  array (
				'meta' => 'WPPAGE',
				'value' => -1,
			  ),
			),
		);
		$this->expectException(\Exception::class);
		$recipe_id = $this->importer->add_trigger( $recipe_id, $trigger );
	}