Mercurial > hg > rr-repo
diff modules/simpletest/tests/upgrade/drupal-7.trigger.database.php @ 0:ff03f76ab3fe
initial version
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Wed, 21 Aug 2013 18:51:11 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/simpletest/tests/upgrade/drupal-7.trigger.database.php Wed Aug 21 18:51:11 2013 +0100 @@ -0,0 +1,28 @@ +<?php +/** + * @file + * Test content for the trigger upgrade path. + */ + +// Add several trigger configurations. +db_insert('trigger_assignments')->fields(array( + 'hook', + 'aid', + 'weight', +)) +->values(array( + 'hook' => 'node_presave', + 'aid' => 'node_publish_action', + 'weight' => '1', +)) +->values(array( + 'hook' => 'comment_presave', + 'aid' => 'comment_publish_action', + 'weight' => '1', +)) +->values(array( + 'hook' => 'comment_delete', + 'aid' => 'node_save_action', + 'weight' => '1', +)) +->execute();