'type' => null,
'canDelete' => false,
'current' => true,
+ 'scope' => ['filesystem' => true]
],
[
'id' => 200,
'lastActivity' => null,
'type' => null,
'canDelete' => true,
+ 'scope' => ['filesystem' => true]
]
], $this->controller->index());
}
->with($newToken, $this->uid, 'User13', $password, $name, IToken::PERMANENT_TOKEN)
->will($this->returnValue($deviceToken));
+ $deviceToken->expects($this->once())
+ ->method('jsonSerialize')
+ ->will($this->returnValue(['dummy' => 'dummy', 'canDelete' => true]));
+
$expected = [
'token' => $newToken,
- 'deviceToken' => $deviceToken,
+ 'deviceToken' => ['dummy' => 'dummy', 'canDelete' => true],
'loginName' => 'User13',
];
$this->assertEquals($expected, $this->controller->create($name));