Lines Matching full:this

5     // the id used for this test case
21 $this->id = 'test:p_set_metadata_during_rendering';
22 $this->active = true;
25 saveWikiText($this->id, 'Test ' . time(), 'Test data setup');
30 $this,
37 $this,
41 …$EVENT_HANDLER->register_hook('PARSER_HANDLER_DONE', 'BEFORE', $this, 'helper_inject_test_instruct…
43 // Change the global plugin controller so this test can be a fake syntax plugin
45 $this->plugin_controller = $plugin_controller;
46 $plugin_controller = $this;
49 $newMeta = p_get_metadata($this->id);
52 $plugin_controller = $this->plugin_controller;
55 $this->assertEquals($newMeta[ 'test_before_set' ], 'test');
56 $this->assertEquals($newMeta[ 'test_after_set' ], 'test');
57 $this->assertEquals($newMeta[ 'test_during_rendering' ], 'test');
60 $this->active = false;
63 $this->assertEquals($newMeta, p_get_metadata($this->id));
65 saveWikiText($this->id, '', 'Test data remove');
71 if ($this->active) {
72 p_set_metadata($this->id, $meta, false, true);
75 $this->assertTrue(is_string($meta[ $key ])); // ensure we really have a key
77 $this->assertNotEquals($meta[ $key ], p_get_metadata($this->id, $key));
81 // helper for injecting an instruction for this test case
84 if ($this->active) {
92 if ($this->active) {
94 p_set_metadata($this->id, [$key => 'test'], false, true);
96 $this->assertNotEquals($key, p_get_metadata($this->id, $key));
103 return $this->plugin_controller->getList();
106 … // wrapper function for the fake plugin controller, return $this for the fake syntax of this test
110 return $this;
112 return $this->plugin_controller->load($type, $name, $new, $disabled);