mirror of
https://github.com/nextcloud/server.git
synced 2026-06-19 21:49:43 -04:00
Run test only when idn is available
IDN is not installed on all machines making the unit test execution fail on those without. Let's make IDN thus a pre-requirement for the text execution.
This commit is contained in:
parent
7224e99ccd
commit
e0d6bd5b6d
1 changed files with 4 additions and 0 deletions
|
|
@ -39,7 +39,11 @@ class MessageTest extends TestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @requires function idn_to_ascii
|
||||
* @dataProvider mailAddressProvider
|
||||
*
|
||||
* @param string $unconverted
|
||||
* @param string $expected
|
||||
*/
|
||||
public function testConvertAddresses($unconverted, $expected) {
|
||||
$this->assertSame($expected, self::invokePrivate($this->message, 'convertAddresses', array($unconverted)));
|
||||
|
|
|
|||
Loading…
Reference in a new issue