예제 #1
0
 /**
  * @return void
  */
 public function testHasShouldReturnTrue()
 {
     $conditionCollection = new ConditionCollection();
     $condition = $this->getConditionMock();
     $conditionCollection->add($condition, self::CONDITION_NAME);
     $this->assertTrue($conditionCollection->has(self::CONDITION_NAME));
 }
예제 #2
0
파일: Drawer.php 프로젝트: spryker/Oms
 /**
  * @param \Spryker\Zed\Oms\Business\Process\TransitionInterface $transition
  * @param string $label
  *
  * @return array
  */
 protected function addEdgeConditionText(TransitionInterface $transition, $label)
 {
     if ($transition->hasCondition()) {
         $conditionLabel = $transition->getCondition();
         if (!$this->conditions->has($transition->getCondition())) {
             $conditionLabel .= ' ' . $this->notImplemented;
         }
         $label[] = $conditionLabel;
     }
     return $label;
 }