Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardojbaez committed Nov 28, 2017
1 parent 77312d5 commit 6fcc259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/Models/PlanSubscriptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public function it_can_be_renewed()
$subscription->renew();

$this->assertTrue($subscription->isActive());
$this->assertEquals(Carbon::now()->addMonth()->format('Y-m-d H:i:s'), $subscription->ends_at->format('Y-m-d H:i:s'));
$this->assertEquals(Carbon::now()->addMonth()->month, $subscription->ends_at->month);

Event::assertFired(SubscriptionRenewed::class, function ($event) use ($subscription) {
return (int) $event->subscription->id === (int) $subscription->id;
Expand Down

0 comments on commit 6fcc259

Please sign in to comment.