diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-11-30 19:31:47 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-11-30 19:31:47 +0000 |
commit | 1fb5f62ba56bdbc6ff9f8a4045bccca8c5b9decd (patch) | |
tree | 2160f4d43f9da6385d200a04ee470c08b022c69e /modules/simpletest/tests | |
parent | 96b74a1594456dc1879df03222656e0dec815ad6 (diff) | |
download | brdo-1fb5f62ba56bdbc6ff9f8a4045bccca8c5b9decd.tar.gz brdo-1fb5f62ba56bdbc6ff9f8a4045bccca8c5b9decd.tar.bz2 |
- Patch #651240 by fago, sun: allow modules to react to changes to an entity.
Diffstat (limited to 'modules/simpletest/tests')
-rw-r--r-- | modules/simpletest/tests/file.test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/simpletest/tests/file.test b/modules/simpletest/tests/file.test index 36a7170b2..c9577c6b2 100644 --- a/modules/simpletest/tests/file.test +++ b/modules/simpletest/tests/file.test @@ -1485,7 +1485,7 @@ class FileMoveTest extends FileHookTestCase { $this->assertEqual($contents, file_get_contents($result->uri), t('Contents of file correctly written.')); // Check that the correct hooks were called. - $this->assertFileHooksCalled(array('move', 'update')); + $this->assertFileHooksCalled(array('move', 'load', 'update')); // Make sure we got the same file back. $this->assertEqual($source->fid, $result->fid, t("Source file id's' %fid is unchanged after move.", array('%fid' => $source->fid))); @@ -1517,7 +1517,7 @@ class FileMoveTest extends FileHookTestCase { $this->assertEqual($contents, file_get_contents($result->uri), t('Contents of file correctly written.')); // Check that the correct hooks were called. - $this->assertFileHooksCalled(array('move', 'update')); + $this->assertFileHooksCalled(array('move', 'load', 'update')); // Compare the returned value to what made it into the database. $this->assertFileUnchanged($result, file_load($result->fid, TRUE)); @@ -1891,7 +1891,7 @@ class FileSaveTest extends FileHookTestCase { $resaved_file = file_save($saved_file); // Check that the correct hooks were called. - $this->assertFileHooksCalled(array('update')); + $this->assertFileHooksCalled(array('load', 'update')); $this->assertEqual($resaved_file->fid, $saved_file->fid, t("The file ID of an existing file is not changed when updating the database."), 'File'); $this->assertTrue($resaved_file->timestamp >= $saved_file->timestamp, t("Timestamp didn't go backwards."), 'File'); |