/** * Prepare the element and get the static openTo path if needed * * @return void|string */ public function prepareElement() { $this->pluginArray['openTo'] = '/'; if (!empty($this->pluginArray['static'])) { $file = $this->plugin->get('static_file'); $this->pluginArray['openTo'] = dirname($file) . '/'; } return $this->pluginArray['openTo']; }
/** * @param string $content * @dataProvider providerSetContent * @depends testGetContent */ public function testSetContent($content) { $this->plugin->setContent($content); $this->assertEquals($content, $this->plugin->get('plugincode')); }