/**
  * Throws a BadMethodCallException because no native is allowed for this type.
  * @expectedException \BadMethodCallException
  * @expectedExceptionMessage Cannot create a Date object via this method.
  */
 public function testThrowsABadMethodCallExceptionBecauseNoNativeIsAllowedForThisType()
 {
     FieldType\Date::fromNative();
 }
 /**
  * Returns the string "date".
  */
 public function testReturnsTheStringDate()
 {
     $instance = new FieldType\Date();
     $result = $instance->toNative();
     static::assertEquals('date', $result);
 }