Skip to content

Move OCS calls to app framework - consumes less resources#98

Merged
DeepDiver1975 merged 2 commits intomasterfrom
ocs-controller
Jul 6, 2017
Merged

Move OCS calls to app framework - consumes less resources#98
DeepDiver1975 merged 2 commits intomasterfrom
ocs-controller

Conversation

@DeepDiver1975
Copy link
Member

@DeepDiver1975 DeepDiver1975 commented Jun 20, 2017

@PVince81
Copy link
Contributor

which part of the notifications app requires custom headers ? this is not directly visible in this diff but I guess it's buried somewhere else in the app ?

@DeepDiver1975
Copy link
Member Author

@PVince81
Copy link
Contributor

Ok then, but CI is failing

@PVince81
Copy link
Contributor

never mind, needs core PR to be merged for CI.

👍 if CI passes after that

@DeepDiver1975 DeepDiver1975 force-pushed the ocs-controller branch 2 times, most recently from c33415d to 27f93bb Compare June 21, 2017 19:06
@PVince81 PVince81 added this to the development milestone Jul 4, 2017
@PVince81
Copy link
Contributor

PVince81 commented Jul 4, 2017

some failures in multiple targets, for example:

There were 6 failures:

1) OCA\Notifications\Tests\Unit\Controller\EndpointControllerTest::testGetNotification with data set #0 (42, 'username1', array('$notification'))

Expectation failed for method name is equal to <string:getById> when invoked 1 time(s)

Parameter 0 for invocation OCA\Notifications\Handler::getById(Array (...), 'username1') does not match expected value.

Array (...) does not match expected type "integer".

/home/travis/build/owncloud/core/apps/notifications/lib/Controller/EndpointController.php:121

/home/travis/build/owncloud/core/apps/notifications/tests/Unit/Controller/EndpointControllerTest.php:309

2) OCA\Notifications\Tests\Unit\Controller\EndpointControllerTest::testGetNotification with data set #1 (21, 'username2', array('$notification'))

Expectation failed for method name is equal to <string:getById> when invoked 1 time(s)

Parameter 0 for invocation OCA\Notifications\Handler::getById(Array (...), 'username2') does not match expected value.

Array (...) does not match expected type "integer".

/home/travis/build/owncloud/core/apps/notifications/lib/Controller/EndpointController.php:121

/home/travis/build/owncloud/core/apps/notifications/tests/Unit/Controller/EndpointControllerTest.php:309

3) OCA\Notifications\Tests\Unit\Controller\EndpointControllerTest::testGetNotificationNoId with data set #1 (true, array(), false, null)

OCA\Notifications\Handler::getById(Array (), 'username') was not expected to be called.

/home/travis/build/owncloud/core/apps/notifications/lib/Controller/EndpointController.php:121

/home/travis/build/owncloud/core/apps/notifications/tests/Unit/Controller/EndpointControllerTest.php:350

4) OCA\Notifications\Tests\Unit\Controller\EndpointControllerTest::testDeleteNotification with data set #0 (42, 'username1')

Expectation failed for method name is equal to <string:deleteById> when invoked 1 time(s)

Parameter 0 for invocation OCA\Notifications\Handler::deleteById(Array (...), 'username1') does not match expected value.

Array (...) does not match expected type "integer".

/home/travis/build/owncloud/core/apps/notifications/lib/Controller/EndpointController.php:150

/home/travis/build/owncloud/core/apps/notifications/tests/Unit/Controller/EndpointControllerTest.php:375

5) OCA\Notifications\Tests\Unit\Controller\EndpointControllerTest::testDeleteNotification with data set #1 (21, 'username2')

Expectation failed for method name is equal to <string:deleteById> when invoked 1 time(s)

Parameter 0 for invocation OCA\Notifications\Handler::deleteById(Array (...), 'username2') does not match expected value.

Array (...) does not match expected type "integer".

/home/travis/build/owncloud/core/apps/notifications/lib/Controller/EndpointController.php:150

/home/travis/build/owncloud/core/apps/notifications/tests/Unit/Controller/EndpointControllerTest.php:375

6) OCA\Notifications\Tests\Unit\Controller\EndpointControllerTest::testDeleteNotificationNoId

OCA\Notifications\Handler::deleteById(Array (), 'username') was not expected to be called.

/home/travis/build/owncloud/core/apps/notifications/lib/Controller/EndpointController.php:150

/home/travis/build/owncloud/core/apps/notifications/tests/Unit/Controller/EndpointControllerTest.php:387

FAILURES!

Tests: 36, Assertions: 104, Failures: 6.

@DeepDiver1975 DeepDiver1975 self-assigned this Jul 5, 2017
@DeepDiver1975 DeepDiver1975 merged commit e0fb0e8 into master Jul 6, 2017
@DeepDiver1975 DeepDiver1975 deleted the ocs-controller branch July 6, 2017 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants