diff --git a/Makefile b/Makefile index 20b9e943..b0ee6bee 100644 --- a/Makefile +++ b/Makefile @@ -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 d8ab6783..1b3886aa 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -6,10 +6,10 @@ 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. AGPL Morris Jobke - 1.2.2 + 1.2.3 FilesAccessControl - other + files https://github.com/nextcloud/files_accesscontrol https://github.com/nextcloud/files_accesscontrol/issues https://github.com/nextcloud/files_accesscontrol.git diff --git a/tests/Settings/AdminTest.php b/tests/Settings/AdminTest.php index 45874dc7..2426a0bd 100644 --- a/tests/Settings/AdminTest.php +++ b/tests/Settings/AdminTest.php @@ -30,49 +30,43 @@ 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 @@ public function testGetForm() { ->willReturn($this->container); $result = $this->admin->getForm(); - $this->assertInstanceOf('OCP\AppFramework\Http\TemplateResponse', $result); + $this->assertInstanceOf(TemplateResponse::class, $result); } }