Lines Matching refs:action
11 $action = $this->getTemplateClass();
12 $action->prepareLanguagePlaceholder();
14 $this->assertEquals('en', $action->values['__lang__']);
15 $this->assertEquals('/@LANG@/', $action->patterns['__lang__']);
16 $this->assertEquals('', $action->values['__trans__']);
17 $this->assertEquals('/@TRANS@/', $action->patterns['__trans__']);
30 $action = $this->getTemplateClass();
31 $action->prepareLanguagePlaceholder();
33 $this->assertEquals('en', $action->values['__lang__']);
34 $this->assertEquals('/@LANG@/', $action->patterns['__lang__']);
35 $this->assertEquals('', $action->values['__trans__']);
36 $this->assertEquals('/@TRANS@/', $action->patterns['__trans__']);
50 $action = $this->getTemplateClass();
51 $action->prepareLanguagePlaceholder();
53 $this->assertEquals('en', $action->values['__lang__']);
54 $this->assertEquals('/@LANG@/', $action->patterns['__lang__']);
55 $this->assertEquals('de', $action->values['__trans__']);
56 $this->assertEquals('/@TRANS@/', $action->patterns['__trans__']);
66 $action = $this->getTemplateClass();
67 $action->prepareFieldReplacements($data, '_', '');
69 $this->assertEquals('/(@@|##)text1(?:\|(.*?))\1/si', $action->patterns['text1']);
70 $this->assertEquals('$2', $action->values['text1']);
71 $this->assertEmpty($action->targetpages);