public function testGetTranslatedOptionLocales() { $this->setupForOptionLocales(); $expectedResults = ['en_US', 'uk_UA', 'de_DE']; $list = $this->listsModel->getOptionLocales(); foreach ($expectedResults as $value) { $found = false; foreach ($list as $item) { $found = $found || $value == $item['value']; } $this->assertTrue($found); } }
public function testGetTranslatedOptionLocales() { $this->setupForOptionLocales(); $this->assertEquals([['value' => 'en_US', 'label' => 'English (United States) / English (United States)']], $this->listsModel->getTranslatedOptionLocales()); }
public function testGetTranslatedOptionLocales() { $this->setupForOptionLocales(); $this->assertEquals([['value' => 'az_AZ', 'label' => 'Azərbaycan (Azərbaycan) / Azerbaijani (Azerbaijan)'], ['value' => 'en_US', 'label' => 'English (United States) / English (United States)']], $this->listsModel->getTranslatedOptionLocales()); }