Commit c0edb639 authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

adjust test

parent f26ba584
......@@ -52,9 +52,20 @@ class Session extends \PHPUnit_Framework_TestCase {
public function testLoginValidPasswordEnabled() {
$session = $this->getMock('\OC\Session\Memory', array(), array(''));
->with('user_id', 'foo');
->with($this->callback(function($key) {
switch($key) {
case 'user_id':
case 'loginname':
return true;
return false;
$manager = $this->getMock('\OC\User\Manager');
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment