@@ -37,7 +37,7 @@ public function testEmbedsManySave()
3737 $ this ->assertInstanceOf ('DateTime ' , $ address ->created_at );
3838 $ this ->assertInstanceOf ('DateTime ' , $ address ->updated_at );
3939 $ this ->assertNotNull ($ address ->_id );
40- $ this ->assertInternalType ( ' string ' , $ address ->_id );
40+ $ this ->assertIsString ( $ address ->_id );
4141
4242 $ raw = $ address ->getAttributes ();
4343 $ this ->assertInstanceOf (\MongoDB \BSON \ObjectID::class, $ raw ['_id ' ]);
@@ -177,7 +177,7 @@ public function testEmbedsManyCreate()
177177 $ user = User::create ([]);
178178 $ address = $ user ->addresses ()->create (['city ' => 'Bruxelles ' ]);
179179 $ this ->assertInstanceOf ('Address ' , $ address );
180- $ this ->assertInternalType ( ' string ' , $ address ->_id );
180+ $ this ->assertIsString ( $ address ->_id );
181181 $ this ->assertEquals (['Bruxelles ' ], $ user ->addresses ->pluck ('city ' )->all ());
182182
183183 $ raw = $ address ->getAttributes ();
@@ -188,7 +188,7 @@ public function testEmbedsManyCreate()
188188
189189 $ user = User::create ([]);
190190 $ address = $ user ->addresses ()->create (['_id ' => '' , 'city ' => 'Bruxelles ' ]);
191- $ this ->assertInternalType ( ' string ' , $ address ->_id );
191+ $ this ->assertIsString ( $ address ->_id );
192192
193193 $ raw = $ address ->getAttributes ();
194194 $ this ->assertInstanceOf (\MongoDB \BSON \ObjectID::class, $ raw ['_id ' ]);
@@ -388,14 +388,14 @@ public function testEmbedsManyEagerLoading()
388388 $ relations = $ user ->getRelations ();
389389 $ this ->assertArrayNotHasKey ('addresses ' , $ relations );
390390 $ this ->assertArrayHasKey ('addresses ' , $ user ->toArray ());
391- $ this ->assertInternalType ( ' array ' , $ user ->toArray ()['addresses ' ]);
391+ $ this ->assertIsArray ( $ user ->toArray ()['addresses ' ]);
392392
393393 $ user = User::with ('addresses ' )->get ()->first ();
394394 $ relations = $ user ->getRelations ();
395395 $ this ->assertArrayHasKey ('addresses ' , $ relations );
396396 $ this ->assertEquals (2 , $ relations ['addresses ' ]->count ());
397397 $ this ->assertArrayHasKey ('addresses ' , $ user ->toArray ());
398- $ this ->assertInternalType ( ' array ' , $ user ->toArray ()['addresses ' ]);
398+ $ this ->assertIsArray ( $ user ->toArray ()['addresses ' ]);
399399 }
400400
401401 public function testEmbedsManyDeleteAll ()
@@ -467,7 +467,7 @@ public function testEmbedsOne()
467467 $ this ->assertInstanceOf ('DateTime ' , $ father ->created_at );
468468 $ this ->assertInstanceOf ('DateTime ' , $ father ->updated_at );
469469 $ this ->assertNotNull ($ father ->_id );
470- $ this ->assertInternalType ( ' string ' , $ father ->_id );
470+ $ this ->assertIsString ( $ father ->_id );
471471
472472 $ raw = $ father ->getAttributes ();
473473 $ this ->assertInstanceOf ('MongoDB\BSON\ObjectID ' , $ raw ['_id ' ]);
@@ -543,7 +543,7 @@ public function testEmbedsManyToArray()
543543
544544 $ array = $ user ->toArray ();
545545 $ this ->assertArrayHasKey ('addresses ' , $ array );
546- $ this ->assertInternalType ( ' array ' , $ array ['addresses ' ]);
546+ $ this ->assertIsArray ( $ array ['addresses ' ]);
547547 }
548548
549549 public function testEmbeddedSave ()
0 commit comments