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

33 lines
724 B

<?php
namespace OCA\BruteForceSettings\Tests\Settings;
use OCA\BruteForceSettings\Settings\IPWhitelist;
use OCP\AppFramework\Http\TemplateResponse;
use Test\TestCase;
class IPWhitelistTest extends TestCase {
/** @var IPWhitelist */
private $settings;
public function setUp() {
parent::setUp();
$this->settings = new IPWhitelist();
}
public function testGetForm() {
$expected = new TemplateResponse('bruteforcesettings', 'ipwhitelist');
$this->assertEquals($expected, $this->settings->getForm());
}
public function testGetSection() {
$this->assertSame('security', $this->settings->getSection());
}
public function testGetPriority() {
$this->assertSame(50, $this->settings->getPriority());
}
}