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.
 
 
 
 
 
 
nextcloud-server/apps/encryption/tests/lib/RequirementsCheckerTest.php

51 lines
966 B

<?php
/**
* @author Clark Tomlinson <fallen013@gmail.com>
* @since 3/6/15, 10:36 AM
* @link http:/www.clarkt.com
* @copyright Clark Tomlinson © 2015
*
*/
namespace OCA\Encryption\Tests;
use OCA\Encryption\RequirementsChecker;
use Test\TestCase;
class RequirementsCheckerTest extends TestCase {
/**
* @var RequirementsChecker
*/
private $instance;
/**
*
*/
protected function setUp() {
parent::setUp();
$log = $this->getMock('OCP\ILogger');
$crypt = $this->getMockBuilder('OCA\Encryption\Crypt')
->disableOriginalConstructor()
->getMock();
$crypt
->method('getOpenSSLPkey')
->will($this->returnValue(true));
$this->instance = new RequirementsChecker($crypt, $log);
}
/**
*
*/
public function testCanCheckConfigration() {
$this->assertTrue($this->instance->checkConfiguration());
}
/**
*
*/
public function testCanCheckRequiredExtensions() {
$this->assertTrue($this->instance->checkExtensions());
}
}