Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | public function a_counter_can_seed_simple_test() |
||
10 | { |
||
11 | // create Counters |
||
12 | //This will create a counter with inital value as 3, and every increment 5 will be added. |
||
13 | $counter = Counter::create([ |
||
14 | 'key' => 'number_of_downloads', |
||
15 | 'name' => 'Visitors', |
||
16 | 'initial_value' => 3, |
||
17 | 'step' => 5, |
||
18 | ]); |
||
19 | |||
20 | $this->assertEquals('number_of_downloads', $counter->key); |
||
21 | $this->assertEquals('Visitors', $counter->name); |
||
22 | $this->assertEquals(3, $counter->initial_value); |
||
23 | $this->assertEquals(5, $counter->step); |
||
24 | } |
||
37 |