Mock DIContainer to not hit the database
This commit is contained in:
parent
3bb6dcea64
commit
7e71d8231e
|
@ -36,7 +36,9 @@ class DIContainerTest extends \Test\TestCase {
|
|||
|
||||
protected function setUp(){
|
||||
parent::setUp();
|
||||
$this->container = new DIContainer('name');
|
||||
$this->container = $this->getMock('OC\AppFramework\DependencyInjection\DIContainer',
|
||||
['isAdminUser'], ['name']
|
||||
);
|
||||
$this->api = $this->getMock('OC\AppFramework\Core\API', array(), array('hi'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue