@@ 33-39 (lines=7) @@ | ||
30 | return (new Leasing())->since($month)->lasts($term); |
|
31 | } |
|
32 | ||
33 | public function testCreateMonth() |
|
34 | { |
|
35 | $leasing = $this->buildLeasing('12 months'); |
|
36 | $period = $leasing->getTerm(); |
|
37 | $this->assertInstanceOf(MonthPeriod::class, $period); |
|
38 | $this->assertSame(12, $period->getValue()); |
|
39 | } |
|
40 | ||
41 | public function testTill() |
|
42 | { |
|
@@ 54-60 (lines=7) @@ | ||
51 | $this->assertSame($this->reason, $leasing->getReason()->getValue()); |
|
52 | } |
|
53 | ||
54 | public function testCreateYear() |
|
55 | { |
|
56 | $leasing = $this->buildLeasing('1 year'); |
|
57 | $period = $leasing->getTerm(); |
|
58 | $this->assertInstanceOf(YearPeriod::class, $period); |
|
59 | $this->assertSame(1, $period->getValue()); |
|
60 | } |
|
61 | ||
62 | public function testModifyCharge() |
|
63 | { |