| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 57 | public function testSortFields() |
||
| 58 | { |
||
| 59 | $fragment1 = Fragment::create('articleFragment', 'article', [ |
||
| 60 | 'id', |
||
| 61 | 'title', |
||
| 62 | 'image', |
||
| 63 | ]); |
||
| 64 | |||
| 65 | $fragment2 = Fragment::create('articleFragment', 'article')->fields([ |
||
| 66 | 'title', |
||
| 67 | 'image', |
||
| 68 | 'id', |
||
| 69 | ]); |
||
| 70 | |||
| 71 | $this->assertEquals((string) $fragment1, (string) $fragment2); |
||
| 72 | } |
||
| 74 |