Definition at line 26 of file LinearWorkflowTest.php.
◆ buildFactory()
LinearWorkflowTest::buildFactory |
( |
| ) |
|
|
protected |
◆ setUp()
LinearWorkflowTest::setUp |
( |
| ) |
|
◆ test_active()
LinearWorkflowTest::test_active |
( |
| ) |
|
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.
◆ test_amount_of_steps()
LinearWorkflowTest::test_amount_of_steps |
( |
| ) |
|
Definition at line 67 of file LinearWorkflowTest.php.
69 $this->assertEquals(count($this->steps), $this->wf->getAmountOfSteps());
◆ test_constructor()
LinearWorkflowTest::test_constructor |
( |
| ) |
|
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());
◆ test_constructor_params()
LinearWorkflowTest::test_constructor_params |
( |
| ) |
|
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());
◆ test_implements_factory_interface()
LinearWorkflowTest::test_implements_factory_interface |
( |
| ) |
|
◆ test_withActive_throws()
LinearWorkflowTest::test_withActive_throws |
( |
| ) |
|
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: