nextcloud/tests/lib/PublicNamespace/UtilTest.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
629 B
PHP
Raw Normal View History

2015-05-15 15:29:29 -04:00
<?php
/**
* SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-or-later
2015-05-15 15:29:29 -04:00
*/
2016-05-19 02:56:47 -04:00
namespace Test\PublicNamespace;
class UtilTest extends \Test\TestCase {
/**
* @dataProvider channelProvider
*
* @param string $channel
*/
2015-05-15 15:29:29 -04:00
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']
];
}
}