Lines Matching refs:id
34 $id = 'description_test';
35 saveWikiText($id, $text, 'Created');
36 self::assertEquals($text, p_get_metadata($id, 'description abstract', METADATA_RENDER_UNLIMITED));
38 p_set_metadata($id, array('description' => array('abstract' => 'Persistent description')), false, true);
39 self::assertEquals('Persistent description', p_get_metadata($id, 'description abstract', METADATA_RENDER_UNLIMITED));
43 saveWikiText($id, $text, 'Added meta');
45 self::assertEquals('My abstract', p_get_metadata($id, 'description abstract', METADATA_RENDER_UNLIMITED));
48 saveWikiText($id, $text, 'Updated meta');
49 self::assertEquals('My abstract', p_get_metadata($id, 'description abstract', METADATA_RENDER_UNLIMITED));
50 self::assertEquals('bar', p_get_metadata($id, 'description foobar', METADATA_RENDER_UNLIMITED));
55 $id = "source";
57 saveWikiText($id, $text, 'Created');
59 self::assertEquals(array('link_target' => false), p_get_metadata($id, 'relation references', METADATA_RENDER_UNLIMITED));
62 saveWikiText($id, $text, 'Updated');
64 self::assertEquals(array('foo' => false, 'link_target' => false), p_get_metadata($id, 'relation references', METADATA_RENDER_UNLIMITED));
69 $id = "source";
71 saveWikiText($id, $text, 'Created');
73 self::assertEquals(null, p_get_metadata($id, 'relation references', METADATA_RENDER_UNLIMITED));
76 saveWikiText($id, $text, 'Updated');
78 self::assertEquals(array('foo' => false), p_get_metadata($id, 'relation references', METADATA_RENDER_UNLIMITED));