We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd9a2f2 commit 8c1c885Copy full SHA for 8c1c885
tests/GraphNode/GraphNodeTest.php
@@ -22,6 +22,7 @@
22
*/
23
namespace Facebook\Tests\GraphNode;
24
25
+use Facebook\GraphNode\Birthday;
26
use Facebook\GraphNode\GraphNode;
27
use PHPUnit\Framework\TestCase;
28
@@ -106,6 +107,13 @@ public static function provideInvalidDateTimeFieldValues()
106
107
yield ['foo_time', 'Expected the invalid ISO 8601 format to fail.'];
108
}
109
110
+ public function testCastBirthdayFieldValueToBirthday()
111
+ {
112
+ $graphNode = new GraphNode(['birthday' => '11/02/1989']);
113
+
114
+ $this->assertInstanceOf(Birthday::class, $graphNode->getField('birthday'));
115
+ }
116
117
public function testGettingGraphNodeAsAnArrayWillNotUncastTheDateTimeObject()
118
{
119
$graphNode = new GraphNode([
0 commit comments