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