@@ -46,7 +46,7 @@ pipeline:
|
|||||||
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
|
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
|
||||||
- cd ../server
|
- cd ../server
|
||||||
- composer install
|
- composer install
|
||||||
- ./lib/composer/bin/parallel-lint --exclude lib/composer/jakub-onderka/ --exclude 3rdparty/symfony/polyfill-php70/Resources/stubs/ --exclude 3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/ --exclude 3rdparty/paragonie/random_compat/lib/ --exclude lib/composer/composer/autoload_static.php --exclude 3rdparty/composer/autoload_static.php .
|
- ./lib/composer/bin/parallel-lint --exclude build/.phan/ --exclude lib/composer/jakub-onderka/ --exclude 3rdparty/symfony/polyfill-php70/Resources/stubs/ --exclude 3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/ --exclude 3rdparty/paragonie/random_compat/lib/ --exclude lib/composer/composer/autoload_static.php --exclude 3rdparty/composer/autoload_static.php .
|
||||||
when:
|
when:
|
||||||
matrix:
|
matrix:
|
||||||
TESTS: syntax-php5.6
|
TESTS: syntax-php5.6
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
namespace OCA\Deck\Controller;
|
namespace OCA\Deck\Controller;
|
||||||
|
|
||||||
use OCA\Deck\Db\Acl;
|
use OCA\Deck\Db\Acl;
|
||||||
|
use OCP\IUser;
|
||||||
|
|
||||||
class BoardControllerTest extends \PHPUnit_Framework_TestCase {
|
class BoardControllerTest extends \PHPUnit_Framework_TestCase {
|
||||||
|
|
||||||
@@ -61,11 +62,12 @@ class BoardControllerTest extends \PHPUnit_Framework_TestCase {
|
|||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
->getMock();
|
->getMock();
|
||||||
|
|
||||||
|
$user = $this->createMock(IUser::class);
|
||||||
$this->groupManager->method('getUserGroupIds')
|
$this->groupManager->method('getUserGroupIds')
|
||||||
->willReturn(['admin', 'group1', 'group2']);
|
->willReturn(['admin', 'group1', 'group2']);
|
||||||
$this->userManager->method('get')
|
$this->userManager->method('get')
|
||||||
->with($this->userId)
|
->with($this->userId)
|
||||||
->willReturn('user');
|
->willReturn($user);
|
||||||
|
|
||||||
$this->controller = new BoardController(
|
$this->controller = new BoardController(
|
||||||
'deck',
|
'deck',
|
||||||
|
|||||||
Reference in New Issue
Block a user