| Conditions | 1 |
| Paths | 1 |
| Total Lines | 45 |
| Code Lines | 37 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 57 | public function testLanguageId() { |
||
| 58 | // TODO: Check cache metadata. |
||
| 59 | $metadata = $this->defaultCacheMetaData(); |
||
| 60 | |||
| 61 | $this->assertResults($this->getQueryFromFile('languages.gql'), [], [ |
||
| 62 | 'languages' => [ |
||
| 63 | 0 => [ |
||
| 64 | 'id' => 'en', |
||
| 65 | 'name' => 'English', |
||
| 66 | 'isDefault' => TRUE, |
||
| 67 | 'isLocked' => FALSE, |
||
| 68 | 'direction' => 'ltr', |
||
| 69 | 'weight' => 0, |
||
| 70 | 'argument' => 'en', |
||
| 71 | ], |
||
| 72 | 1 => [ |
||
| 73 | 'id' => 'fr', |
||
| 74 | 'name' => 'French', |
||
| 75 | 'isDefault' => FALSE, |
||
| 76 | 'isLocked' => FALSE, |
||
| 77 | 'direction' => 'ltr', |
||
| 78 | 'weight' => 1, |
||
| 79 | 'argument' => 'fr', |
||
| 80 | ], |
||
| 81 | 2 => [ |
||
| 82 | 'id' => 'es', |
||
| 83 | 'name' => 'Spanish', |
||
| 84 | 'isDefault' => FALSE, |
||
| 85 | 'isLocked' => FALSE, |
||
| 86 | 'direction' => 'ltr', |
||
| 87 | 'weight' => 2, |
||
| 88 | 'argument' => 'es', |
||
| 89 | ], |
||
| 90 | 3 => [ |
||
| 91 | 'id' => 'pt-br', |
||
| 92 | 'name' => 'Portuguese, Brazil', |
||
| 93 | 'isDefault' => FALSE, |
||
| 94 | 'isLocked' => FALSE, |
||
| 95 | 'direction' => 'ltr', |
||
| 96 | 'weight' => 3, |
||
| 97 | 'argument' => 'pt_br', |
||
| 98 | ], |
||
| 99 | ], |
||
| 100 | ], $metadata); |
||
| 101 | } |
||
| 102 | |||
| 104 |