Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
29 | public function validateJsonWithHexing() |
||
30 | { |
||
31 | $userId = md5(20000); |
||
32 | /** |
||
33 | * @var $model TestBinaryUserHex |
||
34 | */ |
||
35 | $model = TestBinaryUserHex::find([ |
||
36 | 'user_id' => $userId, |
||
37 | 'organization_id' => 100, |
||
38 | ]); |
||
39 | $this->assertNotNull($model); |
||
40 | $this->assertInstanceOf(TestBinaryUserHex::class, $model); |
||
41 | $json = $model->toJson(); |
||
42 | $array = json_decode($json, true); |
||
43 | $this->assertEquals(strtoupper($userId), $array['user_id']); |
||
44 | } |
||
46 |