Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust unit tests setUp #1047

Merged
merged 2 commits into from
Dec 8, 2019
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
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ sudo: required
dist: trusty
language: php
php:
- 7.0
- 7.1
- 7.2
- 7.3
Expand All @@ -25,8 +24,6 @@ env:

matrix:
include:
- php: 7.0
env: "DB=sqlite"
- php: 7.1
env: "DB=sqlite"
- php: 7.1
Expand Down
2 changes: 1 addition & 1 deletion tests/php/controller/contactcontrollerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ContactControllerTest extends \PHPUnit\Framework\TestCase {

private $controller;

public function setUp() {
public function setUp(): void {
$this->appName = 'calendar';
$this->request = $this->getMockBuilder('\OCP\IRequest')
->disableOriginalConstructor()
Expand Down
2 changes: 1 addition & 1 deletion tests/php/controller/emailcontrollerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class EmailControllerTest extends \PHPUnit\Framework\TestCase {

private $controller;

public function setUp() {
public function setUp(): void {
$this->appName = 'calendar';
$this->request = $this->getMockBuilder('\OCP\IRequest')
->disableOriginalConstructor()
Expand Down
2 changes: 1 addition & 1 deletion tests/php/controller/proxycontrollerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ProxyControllerTest extends \PHPUnit\Framework\TestCase {

private $controller;

public function setUp() {
public function setUp(): void {
$this->appName = 'calendar';
$this->request = $this->getMockBuilder('\OCP\IRequest')
->disableOriginalConstructor()
Expand Down
2 changes: 1 addition & 1 deletion tests/php/controller/settingscontrollerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class SettingsControllerTest extends \PHPUnit\Framework\TestCase {

private $controller;

public function setUp() {
public function setUp(): void {
$this->appName = 'calendar';
$this->request = $this->getMockBuilder('\OCP\IRequest')
->disableOriginalConstructor()
Expand Down
2 changes: 1 addition & 1 deletion tests/php/controller/viewcontrollerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class ViewControllerTest extends \PHPUnit\Framework\TestCase {
/** @var ViewController */
private $controller;

public function setUp() {
public function setUp(): void {
$this->appName = 'calendar';
$this->request = $this->getMockBuilder('\OCP\IRequest')
->disableOriginalConstructor()
Expand Down
4 changes: 2 additions & 2 deletions tests/php/http/streamresponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

class StreamResponseTest extends \PHPUnit\Framework\TestCase {

public function setUp() {
public function setUp(): void {

}

Expand All @@ -38,4 +38,4 @@ public function testCallback() {
$streamResponse = new StreamResponse($stream);
$streamResponse->callback($ioutput);
}
}
}