Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ dist: trusty
sudo: required
language: php
php:
- 7.1
- 7.2
- 7.3
- 7.4snapshot
services:
- mysql
- postgresql
Expand All @@ -23,7 +23,7 @@ cache:

env:
global:
- CORE_BRANCH=master
- CORE_BRANCH=bugfix/noid/broken-oracle-install
- APP_NAME=notifications
matrix:
- DB=sqlite
Expand All @@ -34,7 +34,7 @@ branches:
- /^stable\d+(\.\d+)?$/

before_install:
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/oracle-support/before_install.sh
- . ./before_install.sh $APP_NAME $CORE_BRANCH $DB
- sh -c "if [ -f ../server/data/nextcloud.log ]; then cat ../server/data/nextcloud.log; fi"

Expand Down Expand Up @@ -72,17 +72,17 @@ script:

matrix:
include:
- php: 7.1
- php: 7.3
env: DB=mysql
- php: 7.1
- php: 7.3
env: DB=pgsql
- php: 7.1
- php: 7.3
env: DB=oracle
- php: 7.1
- php: 7.3
env: DB=mysql;CODECHECK=1
- php: 7.1
- php: 7.3
env: DB=mysql;CODECHECK=2
- php: 7.1
- php: 7.2
env: DB=mysql;INTEGRATION=1
allow_failures:
- env: DB=mysql;CODECHECK=2
Expand Down
21 changes: 14 additions & 7 deletions tests/Integration/app/appinfo/info.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
<?xml version="1.0"?>
<info>
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
<id>notificationsintegrationtesting</id>
<name>Notifications Integration Testing</name>
<namespace>NotificationsIntegrationTesting</namespace>
<description/>
<summary><![CDATA[1]]></summary>
<description><![CDATA[2]]></description>

<licence>AGPL</licence>
<author>Joas Schilling</author>
<version>0.2.3</version>
<licence>agpl</licence>
<author>Joas Schilling</author>
<namespace>NotificationsIntegrationTesting</namespace>

<types>
<logging/>
</types>

<category>tools</category>

<website>https://github.com/nextcloud/notifications</website>
<bugs>https://github.com/nextcloud/notifications/issues</bugs>
<repository>https://github.com/nextcloud/notifications.git</repository>

<dependencies>
<owncloud min-version="9.0" />
<owncloud max-version="9.2" />
<nextcloud min-version="18" max-version="18" />
</dependencies>
</info>
4 changes: 2 additions & 2 deletions tests/Unit/AppInfo/AppTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class AppTest extends TestCase {
/** @var IUserSession|\PHPUnit_Framework_MockObject_MockObject */
protected $session;

protected function setUp() {
protected function setUp(): void {
parent::setUp();

$this->manager = $this->createMock(IManager::class);
Expand All @@ -56,7 +56,7 @@ protected function setUp() {
$this->overwriteService('UserSession', $this->session);
}

protected function tearDown() {
protected function tearDown(): void {
$this->restoreService('NotificationManager');
$this->restoreService('Request');
$this->restoreService('UserSession');
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/AppInfo/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ApplicationTest extends TestCase {
/** @var IAppContainer */
protected $container;

protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->app = new Application();
$this->container = $this->app->getContainer();
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/AppTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class AppTest extends TestCase {
/** @var App */
protected $app;

protected function setUp() {
protected function setUp(): void {
parent::setUp();

$this->handler = $this->createMock(Handler::class);
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Command/GenerateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class GenerateTest extends \Test\TestCase {
/** @var Generate */
protected $command;

protected function setUp() {
protected function setUp(): void {
parent::setUp();

$this->timeFactory = $this->createMock(ITimeFactory::class);
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Controller/APIControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class APIControllerTest extends \Test\TestCase {
/** @var APIController */
protected $controller;

protected function setUp() {
protected function setUp(): void {
parent::setUp();

/** @var IRequest|\PHPUnit_Framework_MockObject_MockObject $request */
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Controller/EndpointControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class EndpointControllerTest extends TestCase {
/** @var Push|MockObject */
protected $push;

protected function setUp() {
protected function setUp(): void {
parent::setUp();

$this->request = $this->createMock(IRequest::class);
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Controller/PushControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class PushControllerTest extends TestCase {
';


protected function setUp() {
protected function setUp(): void {
parent::setUp();

$this->request = $this->createMock(IRequest::class);
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/HandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class HandlerTest extends TestCase {
/** @var Handler */
protected $handler;

protected function setUp() {
protected function setUp(): void {
parent::setUp();

$this->handler = new Handler(
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Notifier/NotifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class NotifierTest extends \Test\TestCase {
/** @var IL10N|\PHPUnit_Framework_MockObject_MockObject */
protected $l;

protected function setUp() {
protected function setUp(): void {
parent::setUp();

$this->urlGenerator = $this->createMock(IURLGenerator::class);
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/PushTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class PushTest extends TestCase {
/** @var ILogger|\PHPUnit_Framework_MockObject_MockObject */
protected $logger;

protected function setUp() {
protected function setUp(): void {
parent::setUp();

$this->db = \OC::$server->getDatabaseConnection();
Expand Down