From 1fb5f62ba56bdbc6ff9f8a4045bccca8c5b9decd Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 30 Nov 2010 19:31:47 +0000 Subject: - Patch #651240 by fago, sun: allow modules to react to changes to an entity. --- modules/simpletest/tests/file.test | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/simpletest/tests') 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'); -- cgit v1.2.3