| 1 | <?php |
||
| 19 | class FeedTypeTest extends AbstractTestCase |
||
| 20 | { |
||
| 21 | public function testIntrospect(): void |
||
| 22 | { |
||
| 23 | $this->assertSame(FeedType::introspect(), [ |
||
| 24 | 'ALL' => 'all', |
||
| 25 | 'JSON' => 'json', |
||
| 26 | 'HTML' => 'html', |
||
| 27 | 'XML' => 'xml', |
||
| 28 | ]); |
||
| 29 | } |
||
| 30 | |||
| 31 | public function testIntrospectKeys(): void |
||
| 32 | { |
||
| 33 | $this->assertSame(FeedType::introspectKeys(), [ |
||
| 34 | 'ALL', |
||
| 35 | 'JSON', |
||
| 36 | 'HTML', |
||
| 37 | 'XML', |
||
| 38 | ]); |
||
| 39 | } |
||
| 40 | |||
| 41 | public function testHasValue(): void |
||
| 42 | { |
||
| 43 | $this->assertTrue(FeedType::hasValue(FeedType::ALL)); |
||
| 44 | $this->assertTrue(FeedType::hasValue(FeedType::JSON)); |
||
| 45 | $this->assertTrue(FeedType::hasValue(FeedType::HTML)); |
||
| 46 | $this->assertTrue(FeedType::hasValue(FeedType::XML)); |
||
| 47 | |||
| 48 | $this->assertFalse(FeedType::hasValue('nope')); |
||
| 49 | } |
||
| 50 | } |
||
| 51 |