ignore code we're unable to test
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
3b4b49fa95
commit
85e4febc24
5 changed files with 8 additions and 3 deletions
|
@ -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
|
|
@ -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
|
|
@ -22,7 +22,6 @@
|
|||
namespace OCA\TwoFactorBackupCodes\Db;
|
||||
|
||||
use OCP\AppFramework\Db\Mapper;
|
||||
use OCP\DB\QueryBuilder\IQueryBuilder;
|
||||
use OCP\IDBConnection;
|
||||
use OCP\IUser;
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
|
||||
// @codeCoverageIgnoreStart
|
||||
$tmpl = new \OCP\Template('twofactor_backupcodes', 'personal');
|
||||
|
||||
return $tmpl->fetchPage();
|
||||
// @codeCoverageIgnoreEnd
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue