aboutsummaryrefslogtreecommitdiff
path: root/engine/tests/api/metadata_cache.php
diff options
context:
space:
mode:
authorSteve Clay <steve@mrclay.org>2013-06-08 22:12:12 -0400
committerSteve Clay <steve@mrclay.org>2013-06-08 22:12:12 -0400
commit5a1a793f8634e0f7133644e09e9ace60782864d4 (patch)
tree7fe6331e9866352d605b32c16f0e0ba56651273a /engine/tests/api/metadata_cache.php
parent8dbdf2f72c9dccbbd471e805fbd112c6817cdcec (diff)
downloadelgg-5a1a793f8634e0f7133644e09e9ace60782864d4.tar.gz
elgg-5a1a793f8634e0f7133644e09e9ace60782864d4.tar.bz2
Fixes #5598: Properly update metadata cache in update_metadata()
Diffstat (limited to 'engine/tests/api/metadata_cache.php')
-rw-r--r--engine/tests/api/metadata_cache.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/engine/tests/api/metadata_cache.php b/engine/tests/api/metadata_cache.php
index 846116a7b..7fb328169 100644
--- a/engine/tests/api/metadata_cache.php
+++ b/engine/tests/api/metadata_cache.php
@@ -166,4 +166,11 @@ class ElggCoreMetadataCacheTest extends ElggCoreUnitTest {
$actual = $this->cache->filterMetadataHeavyEntities($guids, 6000);
$this->assertIdentical($actual, $expected);
}
+
+ public function testCreateMetadataInvalidates() {
+ $this->obj1->foo = 1;
+ create_metadata($this->guid1, 'foo', 2, '', elgg_get_logged_in_user_guid(), ACCESS_FRIENDS);
+
+ $this->assertEqual($this->obj1->foo, 2);
+ }
}