/** * @return void */ public function testHasShouldReturnTrue() { $conditionCollection = new ConditionCollection(); $condition = $this->getConditionMock(); $conditionCollection->add($condition, self::CONDITION_NAME); $this->assertTrue($conditionCollection->has(self::CONDITION_NAME)); }
/** * @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; }