Skip to content

Commit

Permalink
tests: Dummy test for application
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Jul 5, 2024
1 parent 1fb89d5 commit 7cd17c0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
21 changes: 21 additions & 0 deletions tests/Unit/AppInfo/ApplicationTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

declare(strict_types=1);

/**
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\Whiteboard\AppInfo;

class ApplicationTest extends \Test\TestCase {

public function testApp(): void {
$registrationContext = $this->createMock(\OCP\AppFramework\Bootstrap\IRegistrationContext::class);
$app = new Application();
$app->register($registrationContext);
self::assertTrue(true);
}
}
12 changes: 6 additions & 6 deletions tests/phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="bootstrap.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory suffix=".php">./lib</directory>
</include>
</coverage>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="bootstrap.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.2/phpunit.xsd">
<testsuites>
<testsuite name="unit">
<directory>./Unit</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">./lib</directory>
</include>
</source>
</phpunit>

0 comments on commit 7cd17c0

Please sign in to comment.