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