| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class DatabaseOptionBuilderFeatureTest extends TestCase |
||
| 6 | { |
||
| 7 | public function test_it_builds_database_options() |
||
| 8 | { |
||
| 9 | $options = OptionBuilder::forDatabase() |
||
| 10 | ->table('cache_items') |
||
| 11 | ->expirationTime('12 hours') |
||
| 12 | ->flushAfter('7 days') |
||
| 13 | ->build(); |
||
| 14 | |||
| 15 | $this->assertArrayHasKey('table', $options); |
||
| 16 | $this->assertArrayHasKey('expirationTime', $options); |
||
| 17 | $this->assertArrayHasKey('flushAfter', $options); |
||
| 18 | |||
| 19 | $this->assertSame('cache_items', $options['table']); |
||
| 20 | $this->assertSame('12 hours', $options['expirationTime']); |
||
| 21 | $this->assertSame('7 days', $options['flushAfter']); |
||
| 22 | } |
||
| 23 | |||
| 24 | public function test_it_allows_timebuilder_for_database() |
||
| 33 | } |
||
| 34 | } |
||
| 35 |