/**
  * Tests the attachRules() method
  *
  * @return  void
  *
  * @since   3.4
  * @covers  JComponentRouterView::attachRules
  */
 public function testAttachRules()
 {
     $rule = new TestComponentRouterRule($this->object);
     $this->assertEquals(array(), $this->object->getRules());
     $this->object->attachRules(array($rule));
     $this->assertEquals(array($rule), $this->object->getRules());
 }