File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -976,15 +976,19 @@ public function testNumericFieldName(): void
976
976
{
977
977
$ user = new User ();
978
978
$ user ->{1 } = 'one ' ;
979
- $ user ->{2 } = ['2 ' => 'two.two ' ];
979
+ $ user ->{2 } = ['3 ' => 'two.three ' ];
980
980
$ user ->save ();
981
981
982
982
$ found = User::where (1 , 'one ' )->first ();
983
983
$ this ->assertInstanceOf (User::class, $ found );
984
984
$ this ->assertEquals ('one ' , $ found [1 ]);
985
985
986
- $ found = User::where ('2.2 ' , 'two.two ' )->first ();
986
+ $ found = User::where ('2.3 ' , 'two.three ' )->first ();
987
987
$ this ->assertInstanceOf (User::class, $ found );
988
- $ this ->assertEquals ([2 => 'two.two ' ], $ found [2 ]);
988
+ $ this ->assertEquals ([3 => 'two.three ' ], $ found [2 ]);
989
+
990
+ $ found = User::where (2.3 , 'two.three ' )->first ();
991
+ $ this ->assertInstanceOf (User::class, $ found );
992
+ $ this ->assertEquals ([3 => 'two.three ' ], $ found [2 ]);
989
993
}
990
994
}
You can’t perform that action at this time.
0 commit comments