0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-05-06 23:10:43 +00:00
nextcloud_server/tests/lib/PublicNamespace/UtilTest.php
Ferdinand Thiessen 832f79ac93
chore: apply code style
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-04-30 19:04:59 +02:00

31 lines
630 B
PHP

<?php
/**
* SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace Test\PublicNamespace;
class UtilTest extends \Test\TestCase {
/**
* @dataProvider channelProvider
*
* @param string $channel
*/
public function testOverrideChannel($channel) {
\OCP\Util::setChannel($channel);
$actual = \OCP\Util::getChannel($channel);
$this->assertEquals($channel, $actual);
}
public function channelProvider() {
return [
['daily'],
['beta'],
['stable'],
['production']
];
}
}