Ejemplo n.º 1
0
 public function itHoldsTheGivenPresenter()
 {
     $presenter = mock('Tracker_CardPresenter');
     $presenter_node = new Tracker_TreeNode_CardPresenterNode(new TreeNode(), $presenter);
     $this->assertEqual($presenter, $presenter_node->getCardPresenter());
 }
Ejemplo n.º 2
0
 public function getChildren()
 {
     return $this->tree_of_card_presenters->getChildren();
 }
 private function getFieldId(Tracker_TreeNode_CardPresenterNode $node)
 {
     $artifact = $node->getCardPresenter()->getArtifact();
     $field = $this->field_retriever->getField($artifact);
     return $field ? $field->getId() : 0;
 }