|
16 | 16 | }); |
17 | 17 |
|
18 | 18 | test('The data property should be an empty Array', function () { |
19 | | - $this->assertIsArray(CustomField::retrieve()); |
20 | | - $this->assertEmpty(CustomField::retrieve()); |
| 19 | + $this->assertIsArray(CustomField::retrieve()->getData()); |
| 20 | + $this->assertEmpty(CustomField::retrieve()->getData()); |
21 | 21 | }); |
22 | 22 |
|
23 | 23 | test('data property should be an empty Array', function () { |
24 | 24 | CustomField::push(['test' => 'this is a test']); |
25 | | - $this->assertNotEmpty(CustomField::retrieve()); |
| 25 | + $this->assertNotEmpty(CustomField::retrieve()->getData()); |
26 | 26 | }); |
27 | 27 |
|
28 | 28 | it('Shoud have an entry named test', function () { |
29 | 29 | CustomField::push(['test' => 'this is a test']); |
30 | | - $this->assertTrue(array_key_exists('test', CustomField::retrieve())); |
| 30 | + $this->assertTrue(array_key_exists('test', CustomField::retrieve()->getData())); |
31 | 31 | }); |
32 | 32 |
|
33 | 33 | it('Shoud have an entry named test & price', function () { |
34 | 34 | CustomField::push(['test' => 'this is a test']); |
35 | 35 | CustomField::set('price', 500); |
36 | | - $this->assertTrue(array_key_exists('test', CustomField::retrieve())); |
37 | | - $this->assertTrue(array_key_exists('price', CustomField::retrieve())); |
38 | | - $this->assertEquals(2, count(CustomField::retrieve())); |
| 36 | + $this->assertTrue(array_key_exists('test', CustomField::retrieve()->getData())); |
| 37 | + $this->assertTrue(array_key_exists('price', CustomField::retrieve()->getData())); |
| 38 | + $this->assertEquals(2, count(CustomField::retrieve()->getData())); |
39 | 39 | }); |
40 | 40 |
|
41 | 41 | it('Shoud set an dummy entry', function () { |
42 | 42 | CustomField::set('dummy', 'test'); |
43 | | - $this->assertTrue(array_key_exists('dummy', CustomField::retrieve())); |
44 | | - $this->assertEquals(3, count(CustomField::retrieve())); |
| 43 | + $this->assertTrue(array_key_exists('dummy', CustomField::retrieve()->getData())); |
| 44 | + $this->assertEquals(3, count(CustomField::retrieve()->getData())); |
45 | 45 | }); |
46 | 46 |
|
47 | 47 | it('Shoud get dummy value', function () { |
|
0 commit comments