/** * Tests the preprocess() method * * @return void * * @since 3.4 * @covers JComponentRouterView::preprocess */ public function testPreprocess() { $rule = new TestComponentRouterRule($this->object); $this->object->attachRule($rule); $this->assertEquals(array('key' => 'value', 'testrule' => 'yes'), $this->object->preprocess(array('key' => 'value'))); }