5 require_once(__DIR__ .
"/../../../../../libs/composer/vendor/autoload.php");
6 require_once(__DIR__ .
"/../../../Base.php");
8 use \ILIAS\UI\Component\Listing\Workflow;
20 $this->title =
'title';
25 $this->wf =
$f->linear($this->title, $this->steps);
30 $this->assertInstanceOf(
Workflow\Workflow::class, $this->wf);
35 $this->assertEquals($this->title, $this->wf->getTitle());
36 $this->assertEquals($this->steps, $this->wf->getSteps());
37 $this->assertEquals(0, $this->wf->getActive());
42 $this->assertEquals($this->title, $this->wf->getTitle());
43 $this->assertEquals($this->steps, $this->wf->getSteps());
44 $this->assertEquals(0, $this->wf->getActive());
49 $this->assertEquals(count($this->steps), $this->wf->getAmountOfSteps());
54 $wf = $this->wf->withActive(1);
55 $this->assertEquals(1, $wf->getActive());
62 $this->wf->withActive(-1);
63 $this->assertFalse(
"This should not happen.");
67 $this->assertTrue($raised);
71 $this->wf->withActive(2);
72 $this->assertFalse(
"This should not happen.");
76 $this->assertTrue($raised);
test_constructor_params()
This describes a Workflow.
test_implements_factory_interface()
Provides common functionality for UI tests.