diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-05-08 16:29:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-08 16:29:49 +0300 |
commit | 451c8a4dc5859fcc9dca26e60a85fca88bf717de (patch) | |
tree | 73d008adbf10c708ae5622c51ea32908d4cafb8f | |
parent | fd336b4f20dbbdd2cc2c99d91308a25ff3a90c11 (diff) | |
parent | 106f8eb3ad5f22e21fc7232af22a61711b646376 (diff) |
Merge pull request #62 from nextcloud/adjust-categoriesv1.2.3
Adjust the category
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | appinfo/info.xml | 4 | ||||
-rw-r--r-- | tests/Settings/AdminTest.php | 38 |
3 files changed, 19 insertions, 25 deletions
@@ -7,7 +7,7 @@ source_dir=$(build_dir)/source sign_dir=$(build_dir)/sign package_name=$(app_name) cert_dir=$(HOME)/.nextcloud/certificates -version+=1.2.2 +version+=1.2.3 all: appstore diff --git a/appinfo/info.xml b/appinfo/info.xml index d8ab678..1b3886a 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -6,10 +6,10 @@ <description>Nextcloud's File Access Control app enables administrators to create and manage a set of rule groups. Each of the rule groups consists of one or more rules. If all rules of a group hold true, the group matches the request and access is being denied. The rules criteria range from IP address, to user groups, collaborative tags and some more.</description> <licence>AGPL</licence> <author>Morris Jobke</author> - <version>1.2.2</version> + <version>1.2.3</version> <namespace>FilesAccessControl</namespace> - <category>other</category> + <category>files</category> <website>https://github.com/nextcloud/files_accesscontrol</website> <bugs>https://github.com/nextcloud/files_accesscontrol/issues</bugs> <repository type="git">https://github.com/nextcloud/files_accesscontrol.git</repository> diff --git a/tests/Settings/AdminTest.php b/tests/Settings/AdminTest.php index 45874dc..2426a0b 100644 --- a/tests/Settings/AdminTest.php +++ b/tests/Settings/AdminTest.php @@ -30,49 +30,43 @@ use OCP\AppFramework\IAppContainer; use OCP\IL10N; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Test\TestCase; +use OCP\AppFramework\Http\TemplateResponse; class AdminTest extends TestCase { - /** @var IL10N */ + /** @var IL10N|\PHPUnit_Framework_MockObject_MockObject */ protected $l; - /** @var Application */ + /** @var Application|\PHPUnit_Framework_MockObject_MockObject */ protected $app; - /** @var EventDispatcherInterface */ + /** @var EventDispatcherInterface|\PHPUnit_Framework_MockObject_MockObject */ protected $dispatcher; - /** @var Admin */ + /** @var Admin */ protected $admin; - /** @var IAppContainer */ + /** @var IAppContainer|\PHPUnit_Framework_MockObject_MockObject */ protected $container; protected function setUp() { parent::setUp(); - $this->l = $this->getMockBuilder('OCP\IL10N') - ->getMock(); - - $this->app = $this->getMockBuilder('OCA\FilesAccessControl\AppInfo\Application') - ->disableOriginalConstructor() - ->getMock(); - - $this->dispatcher = $this->getMockBuilder('Symfony\Component\EventDispatcher\EventDispatcherInterface') - ->getMock(); - - $this->container = $this->getMockBuilder('OCP\AppFramework\IAppContainer')->getMock(); + $this->l = $this->createMock(IL10N::class); + $this->app = $this->createMock(Application::class); + $this->dispatcher = $this->createMock(EventDispatcherInterface::class); + $this->container = $this->createMock(IAppContainer::class); $this->admin = new Admin($this->l, $this->app, $this->dispatcher); } public function testGetForm() { $this->dispatcher->expects($this->once()) - ->method('dispatch') - ->with('OCP\WorkflowEngine::loadAdditionalSettingScripts'); + ->method('dispatch') + ->with('OCP\WorkflowEngine::loadAdditionalSettingScripts'); - $this->l->expects($this->exactly(2)) - ->method('t') - ->willReturnArgument(1); + $this->l->expects($this->exactly(3)) + ->method('t') + ->willReturnArgument(1); $this->container->expects($this->once()) ->method('getAppName') @@ -83,6 +77,6 @@ class AdminTest extends TestCase { ->willReturn($this->container); $result = $this->admin->getForm(); - $this->assertInstanceOf('OCP\AppFramework\Http\TemplateResponse', $result); + $this->assertInstanceOf(TemplateResponse::class, $result); } } |