Skip to content

Commit 07c7d45

Browse files
committed
Add WorkshopType test
1 parent 6c23e8a commit 07c7d45

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

test/TestWorkshopType.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace PhpSchool\PhpWorkshopTest;
4+
5+
use PhpSchool\PhpWorkshop\WorkshopType;
6+
use PHPUnit\Framework\TestCase;
7+
8+
/**
9+
* Class TestWorkshopType
10+
* @author Michael Woodward <[email protected]>
11+
*/
12+
class TestWorkshopType extends TestCase
13+
{
14+
public function testIsTutorialMode()
15+
{
16+
$tutorial = WorkshopType::TUTORIAL();
17+
$standard = WorkshopType::STANDARD();
18+
19+
static::assertTrue($tutorial->isTutorialMode());
20+
static::assertFalse($standard->isTutorialMode());
21+
}
22+
}

0 commit comments

Comments
 (0)