/** @test */ public function it_converts_the_date_to_carbon_if_passed_as_string() { $this->event->setDate('2016-01-31'); $this->assertInstanceOf(Carbon::class, $this->event->getDate()); $this->assertSame('2016-01-31', $this->event->getDate()->toDateString()); }