You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
515 B
PHP

<?php
// Copyright 1999-2021. Plesk International GmbH.
namespace PleskXTest;
class LocaleTest extends TestCase
{
public function testGet()
{
$locales = static::$_client->locale()->get();
$this->assertGreaterThan(0, count($locales));
$locale = $locales['en-US'];
$this->assertEquals('en-US', $locale->id);
}
public function testGetById()
{
$locale = static::$_client->locale()->get('en-US');
$this->assertEquals('en-US', $locale->id);
}
}