Definition at line 26 of file LinearWorkflowTest.php.
◆ buildFactory()
LinearWorkflowTest::buildFactory |
( |
| ) |
|
|
protected |
◆ setUp()
LinearWorkflowTest::setUp |
( |
| ) |
|
◆ testActive()
LinearWorkflowTest::testActive |
( |
| ) |
|
Definition at line 72 of file LinearWorkflowTest.php.
withActive(int $active)
The step at this position is set to active.
getActive()
This is the index of the active step.
◆ testAmountOfSteps()
LinearWorkflowTest::testAmountOfSteps |
( |
| ) |
|
Definition at line 67 of file LinearWorkflowTest.php.
69 $this->assertEquals(count($this->steps), $this->wf->getAmountOfSteps());
◆ testConstructor()
LinearWorkflowTest::testConstructor |
( |
| ) |
|
Definition at line 60 of file LinearWorkflowTest.php.
62 $this->assertEquals($this->title, $this->wf->getTitle());
63 $this->assertEquals($this->steps, $this->wf->getSteps());
64 $this->assertEquals(0, $this->wf->getActive());
◆ testConstructorParams()
LinearWorkflowTest::testConstructorParams |
( |
| ) |
|
Definition at line 53 of file LinearWorkflowTest.php.
55 $this->assertEquals($this->title, $this->wf->getTitle());
56 $this->assertEquals($this->steps, $this->wf->getSteps());
57 $this->assertEquals(0, $this->wf->getActive());
◆ testImplementsFactoryInterface()
LinearWorkflowTest::testImplementsFactoryInterface |
( |
| ) |
|
◆ testWithActiveThrows()
LinearWorkflowTest::testWithActiveThrows |
( |
| ) |
|
Definition at line 78 of file LinearWorkflowTest.php.
References Vendor\Package\$e.
82 $this->wf->withActive(-1);
83 $this->assertFalse(
"This should not happen.");
87 $this->assertTrue($raised);
91 $this->wf->withActive(2);
92 $this->assertFalse(
"This should not happen.");
96 $this->assertTrue($raised);
◆ $steps
array LinearWorkflowTest::$steps |
|
protected |
◆ $title
string LinearWorkflowTest::$title |
|
protected |
◆ $wf
The documentation for this class was generated from the following file: