public function testFieldDatetimeWrapper() { $field = new Field([], [], "any", "label", new DateTime()); $this->assertInstanceOf('Athens\\Core\\Field\\DateTimeWrapper', $field->getInitial()); $this->assertContains(date("Y") . "-", (string) $field->getInitial()); }