ignore code we're unable to test

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2017-01-16 12:48:09 +01:00
parent 3b4b49fa95
commit 85e4febc24
5 changed files with 8 additions and 3 deletions

View file

@ -19,4 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
// @codeCoverageIgnoreStart
OC_App::registerPersonal('twofactor_backupcodes', 'settings/personal');
// @codeCoverageIgnoreEnd

View file

@ -19,6 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
// @codeCoverageIgnoreStart
return [
'routes' => [
[
@ -33,3 +34,4 @@ return [
],
]
];
// @codeCoverageIgnoreEnd

View file

@ -22,7 +22,6 @@
namespace OCA\TwoFactorBackupCodes\Db;
use OCP\AppFramework\Db\Mapper;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;
use OCP\IUser;

View file

@ -1,5 +1,6 @@
<?php
// @codeCoverageIgnoreStart
$tmpl = new \OCP\Template('twofactor_backupcodes', 'personal');
return $tmpl->fetchPage();
// @codeCoverageIgnoreEnd

View file

@ -60,7 +60,7 @@ class ProviderTest extends TestCase {
$lang = 'ru';
$event = $this->createMock(IEvent::class);
$event->expects($this->once())
->method('getType')
->method('getApp')
->willReturn('comments');
$this->setExpectedException(InvalidArgumentException::class);