1 | <?php |
||
12 | class ProductStatusValueConverterTest extends \PHPUnit_Framework_TestCase |
||
13 | { |
||
14 | /** |
||
15 | * @var ProductStatusValueConverter |
||
16 | */ |
||
17 | protected $converter; |
||
18 | |||
19 | public function setup() |
||
23 | |||
24 | public function testExceptionIsThrownIfInvalidStatusIsPassed() |
||
25 | { |
||
26 | $message = 'Given Product Status: "on-vacation" is not valid. Allowed values: '; |
||
27 | $message .= '"Enabled", "Disabled"'; |
||
28 | |||
29 | $this->setExpectedException('\Ddeboer\DataImport\Exception\UnexpectedValueException', $message); |
||
30 | $this->converter->convert('on-vacation'); |
||
31 | } |
||
32 | |||
33 | public function testConvert() |
||
37 | |||
38 | public function testDefaultValueIsUsedIfNoValueSet() |
||
42 | } |
||
43 |